Search in sources :

Example 1 with UserListPagerAdapter

use of com.klinker.android.twitter.adapters.UserListPagerAdapter in project Talon-for-Twitter by klinker24.

the class ViewUsersPopup method onCreate.

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    overridePendingTransition(R.anim.activity_slide_up, R.anim.activity_slide_down);
    Utils.setUpPopupTheme(this, AppSettings.getInstance(this));
    setUpWindow();
    setContentView(R.layout.search_pager);
    ViewPager mViewPager = (ViewPager) findViewById(R.id.pager);
    mViewPager.setPadding(0, 0, 0, 0);
    UserListPagerAdapter adapter = new UserListPagerAdapter(getFragmentManager(), this, getIntent().getLongExtra("id", 0l));
    mViewPager.setAdapter(adapter);
    mViewPager.setOffscreenPageLimit(2);
    AppSettings settings = AppSettings.getInstance(this);
    if (settings.addonTheme) {
        PagerTitleStrip strip = (PagerTitleStrip) findViewById(R.id.pager_title_strip);
        strip.setBackgroundColor(settings.pagerTitleInt);
    }
}
Also used : AppSettings(com.klinker.android.twitter.settings.AppSettings) PagerTitleStrip(android.support.v4.view.PagerTitleStrip) UserListPagerAdapter(com.klinker.android.twitter.adapters.UserListPagerAdapter) ViewPager(android.support.v4.view.ViewPager)

Aggregations

PagerTitleStrip (android.support.v4.view.PagerTitleStrip)1 ViewPager (android.support.v4.view.ViewPager)1 UserListPagerAdapter (com.klinker.android.twitter.adapters.UserListPagerAdapter)1 AppSettings (com.klinker.android.twitter.settings.AppSettings)1