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