Search in sources :

Example 1 with SearchedTrackListFragment

use of io.recom.howabout.category.music.fragment.SearchedTrackListFragment in project howabout-android by recomio.

the class SearchedTrackListActivity method onCreate.

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    Bundle bundle = getIntent().getExtras();
    searchKeyword = bundle.getString("searchKeyword");
    ActionBar actionBar = getSupportActionBar();
    actionBar.setTitle(R.string.menu_search);
    actionBar.setSubtitle(searchKeyword);
    searchedTrackListFragment = new SearchedTrackListFragment();
    Bundle recommendedTrackListFragmentBundle = new Bundle();
    recommendedTrackListFragmentBundle.putString("searchKeyword", searchKeyword);
    searchedTrackListFragment.setArguments(recommendedTrackListFragmentBundle);
    getSupportFragmentManager().beginTransaction().replace(R.id.contentView, searchedTrackListFragment, "music_search").commit();
}
Also used : Bundle(android.os.Bundle) SearchedTrackListFragment(io.recom.howabout.category.music.fragment.SearchedTrackListFragment) ActionBar(com.actionbarsherlock.app.ActionBar)

Aggregations

Bundle (android.os.Bundle)1 ActionBar (com.actionbarsherlock.app.ActionBar)1 SearchedTrackListFragment (io.recom.howabout.category.music.fragment.SearchedTrackListFragment)1