Search in sources :

Example 1 with SearchPagerAdapter

use of org.musicbrainz.mobile.adapter.pager.SearchPagerAdapter in project musicbrainz-android by jdamcd.

the class SearchActivity method enableResultTabs.

private void enableResultTabs() {
    setContentView(R.layout.activity_search_all);
    SearchPagerAdapter adapter = new SearchPagerAdapter(this);
    ViewPager pager = (ViewPager) findViewById(R.id.pager);
    pager.setAdapter(adapter);
    TabPageIndicator indicator = (TabPageIndicator) findViewById(R.id.indicator);
    indicator.setViewPager(pager);
}
Also used : TabPageIndicator(com.viewpagerindicator.TabPageIndicator) SearchPagerAdapter(org.musicbrainz.mobile.adapter.pager.SearchPagerAdapter) ViewPager(android.support.v4.view.ViewPager)

Aggregations

ViewPager (android.support.v4.view.ViewPager)1 TabPageIndicator (com.viewpagerindicator.TabPageIndicator)1 SearchPagerAdapter (org.musicbrainz.mobile.adapter.pager.SearchPagerAdapter)1