Search in sources :

Example 1 with RecommendedTrackListFragment

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

the class RecommendedTrackListActivity method onCreate.

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    Bundle bundle = getIntent().getExtras();
    trackId = bundle.getString("trackId");
    trackTitle = bundle.getString("trackTitle");
    artistName = bundle.getString("artistName");
    thumbnailUrl = bundle.getString("thumbnailUrl");
    ActionBar actionBar = getSupportActionBar();
    actionBar.setTitle(trackTitle);
    actionBar.setSubtitle(artistName);
    recommendedTrackListFragment = new RecommendedTrackListFragment();
    Bundle recommendedTrackListFragmentBundle = new Bundle();
    recommendedTrackListFragmentBundle.putString("trackId", trackId);
    recommendedTrackListFragment.setArguments(recommendedTrackListFragmentBundle);
    getSupportFragmentManager().beginTransaction().replace(R.id.contentView, recommendedTrackListFragment, "music_recommend").commit();
}
Also used : Bundle(android.os.Bundle) RecommendedTrackListFragment(io.recom.howabout.category.music.fragment.RecommendedTrackListFragment) ActionBar(com.actionbarsherlock.app.ActionBar)

Aggregations

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