Search in sources :

Example 1 with SubredditListView

use of me.ccrama.redditslide.Fragments.SubredditListView in project Slide by ccrama.

the class SubredditSearch method onCreate.

@Override
public void onCreate(Bundle savedInstance) {
    super.onCreate(savedInstance);
    term = getIntent().getExtras().getString("term");
    applyColorTheme("");
    setContentView(R.layout.activity_fragmentinner);
    setupAppBar(R.id.toolbar, term, true, true);
    Fragment f = new SubredditListView();
    Bundle args = new Bundle();
    args.putString("id", term);
    f.setArguments(args);
    FragmentManager fragmentManager = getSupportFragmentManager();
    FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();
    fragmentTransaction.replace(R.id.fragmentcontent, f);
    fragmentTransaction.commit();
}
Also used : FragmentManager(android.support.v4.app.FragmentManager) FragmentTransaction(android.support.v4.app.FragmentTransaction) Bundle(android.os.Bundle) SubredditListView(me.ccrama.redditslide.Fragments.SubredditListView) Fragment(android.support.v4.app.Fragment)

Aggregations

Bundle (android.os.Bundle)1 Fragment (android.support.v4.app.Fragment)1 FragmentManager (android.support.v4.app.FragmentManager)1 FragmentTransaction (android.support.v4.app.FragmentTransaction)1 SubredditListView (me.ccrama.redditslide.Fragments.SubredditListView)1