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();
}
Aggregations