com.astuetz.PagerSlidingTabStrip Java Examples
The following examples show how to use
com.astuetz.PagerSlidingTabStrip.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: MovieLibraryOverviewFragment.java From Mizuu with Apache License 2.0 | 6 votes |
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View v = inflater.inflate(R.layout.viewpager_with_tabs, container, false); if (MizLib.hasLollipop()) ((ActionBarActivity) getActivity()).getSupportActionBar().setElevation(0); mViewPager = (ViewPager) v.findViewById(R.id.awesomepager); mViewPager.setPageMargin(MizLib.convertDpToPixels(getActivity(), 16)); mTabs = (PagerSlidingTabStrip) v.findViewById(R.id.tabs); mViewPager.setAdapter(new PagerAdapter(getChildFragmentManager())); mTabs.setViewPager(mViewPager); mTabs.setVisibility(View.VISIBLE); // Work-around a bug that sometimes happens with the tabs mViewPager.setCurrentItem(0); if (MizLib.hasLollipop()) mTabs.setElevation(1f); return v; }
Example #2
Source File: QuickContactFragment.java From UltimateAndroid with Apache License 2.0 | 6 votes |
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { if (getDialog() != null) { getDialog().getWindow().requestFeature(Window.FEATURE_NO_TITLE); getDialog().getWindow().setBackgroundDrawableResource(android.R.color.transparent); } View root = inflater.inflate(R.layout.pager_sliding_tab_fragment_quick_contact, container, false); tabs = (PagerSlidingTabStrip) root.findViewById(R.id.tabs); pager = (ViewPager) root.findViewById(R.id.pager); adapter = new ContactPagerAdapter(); pager.setAdapter(adapter); tabs.setViewPager(pager); return root; }
Example #3
Source File: MainActivity.java From Android-ParallaxHeaderViewPager with Apache License 2.0 | 6 votes |
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mMinHeaderHeight = getResources().getDimensionPixelSize(R.dimen.min_header_height); mHeaderHeight = getResources().getDimensionPixelSize(R.dimen.header_height); mMinHeaderTranslation = -mMinHeaderHeight; setContentView(R.layout.activity_main); mHeader = findViewById(R.id.header); info = (TextView) findViewById(R.id.info); mPagerSlidingTabStrip = (PagerSlidingTabStrip) findViewById(R.id.tabs); mViewPager = (ViewPager) findViewById(R.id.pager); mViewPager.setOffscreenPageLimit(4); mPagerAdapter = new PagerAdapter(getSupportFragmentManager()); mPagerAdapter.setTabHolderScrollingContent(this); mViewPager.setAdapter(mPagerAdapter); mPagerSlidingTabStrip.setViewPager(mViewPager); mPagerSlidingTabStrip.setOnPageChangeListener(this); mLastY=0; }
Example #4
Source File: MainActivity.java From SoundRecorder with GNU General Public License v3.0 | 6 votes |
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); pager = (ViewPager) findViewById(R.id.pager); pager.setAdapter(new MyAdapter(getSupportFragmentManager())); tabs = (PagerSlidingTabStrip) findViewById(R.id.tabs); tabs.setViewPager(pager); Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); toolbar.setPopupTheme(R.style.ThemeOverlay_AppCompat_Light); if (toolbar != null) { setSupportActionBar(toolbar); } }
Example #5
Source File: PagerSlidingTabStripDemoActivity.java From android-open-project-demo with Apache License 2.0 | 6 votes |
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_demo); mPagerSlidingTabStrip = (PagerSlidingTabStrip) findViewById(R.id.tabs); mViewPager = (ViewPager) findViewById(R.id.pager); //设置页面之间的间隔,实际项目中应该用dip转px mViewPager.setPageMargin(10); initPageAdapter(); // mPagerSlidingTabStrip.setViewPager(mViewPager); }
Example #6
Source File: MainPagerActivity.java From Man-Man with GNU General Public License v3.0 | 6 votes |
@Override protected void onCreate(Bundle savedInstanceState) { // should set theme prior to instantiating compat actionbar etc. Utils.setupTheme(this); super.onCreate(savedInstanceState); setContentView(R.layout.activity_main_pager); mActionBar = (Toolbar) findViewById(R.id.app_toolbar); setSupportActionBar(mActionBar); mPager = (ViewPager) findViewById(R.id.page_holder); mPager.setAdapter(new ManFragmentPagerAdapter(getSupportFragmentManager())); PagerSlidingTabStrip tabs = (PagerSlidingTabStrip) findViewById(R.id.tabs); tabs.setViewPager(mPager); // setting up vending mDonateHelper = new DonateHelper(this); // applying default tab SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this); final String index = prefs.getString("app.default.tab", "0"); mPager.setCurrentItem(Integer.valueOf(index)); }
Example #7
Source File: AppDetailsActivity.java From Kernel-Tuner with GNU General Public License v3.0 | 6 votes |
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_application_details); Toolbar toolbar = (Toolbar)findViewById(R.id.toolbar); setSupportActionBar(toolbar); ViewPager mPager = (ViewPager)findViewById(R.id.pager); AppDetailsPagerAdapter mPagerAdapter = new AppDetailsPagerAdapter(getSupportFragmentManager(), this); mPager.setAdapter(mPagerAdapter); PagerSlidingTabStrip tabs = (PagerSlidingTabStrip)findViewById(R.id.tabs); tabs.setViewPager(mPager); }
Example #8
Source File: ParallaxImageHeaderFragment.java From ScrollableLayout with MIT License | 6 votes |
@Override public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { View layout = inflater.inflate(R.layout.fragment_imageheader, container, false); ViewPager viewPager = (ViewPager) layout.findViewById(R.id.viewpager); imageHeader = (ImageView) layout.findViewById(R.id.imageHeader); // ScrollableLayout mScrollLayout = (ScrollableLayout) layout.findViewById(R.id.scrollableLayout); mScrollLayout.setOnScrollListener(new ScrollableLayout.OnScrollListener() { @Override public void onScroll(int currentY, int maxY) { ViewHelper.setTranslationY(imageHeader, (float) (currentY * 0.5)); } }); // 扩展点击头部滑动范围 // int headHeight = getResources().getDimensionPixelSize(R.dimen.head_height); // int tabHeight = getResources().getDimensionPixelSize(R.dimen.tab_height); // mScrollLayout.setClickHeadExpand(headHeight + tabHeight); PagerSlidingTabStrip pagerSlidingTabStrip = (PagerSlidingTabStrip) layout.findViewById(R.id.pagerStrip); initFragmentPager(viewPager, pagerSlidingTabStrip, mScrollLayout); return layout; }
Example #9
Source File: PagerHeaderFragment.java From ScrollableLayout with MIT License | 6 votes |
@Override public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { View layout = inflater.inflate(R.layout.fragment_pagerheader, container, false); ViewPager viewPager = (ViewPager) layout.findViewById(R.id.viewpager); // 头部图片集 ViewPager vpImage = (ViewPager) layout.findViewById(R.id.imagepager); vpImage.setAdapter(new MyHeadPicAdapter(getActivity())); // ScrollableLayout mScrollLayout = (ScrollableLayout) layout.findViewById(R.id.scrollableLayout); PagerSlidingTabStrip pagerSlidingTabStrip = (PagerSlidingTabStrip) layout.findViewById(R.id.pagerStrip); initFragmentPager(viewPager, pagerSlidingTabStrip, mScrollLayout); setupPullToRefresh(layout); return layout; }
Example #10
Source File: MainActivity.java From BeyondUPnP with Apache License 2.0 | 6 votes |
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); mBeyondApplication = (BeyondApplication) getApplication(); mTabs = (PagerSlidingTabStrip) findViewById(R.id.tabs); mTabs.setShouldExpand(true); mPager = (ViewPager) findViewById(R.id.pager); mPagerAdapter = new PagerAdapter(getFragmentManager()); mPager.setAdapter(mPagerAdapter); mPager.setOffscreenPageLimit(2); mTabs.setViewPager(mPager); mTabs.setOnPageChangeListener(this); // Bind UPnP service Intent upnpServiceIntent = new Intent(MainActivity.this, BeyondUpnpService.class); bindService(upnpServiceIntent, mUpnpServiceConnection, Context.BIND_AUTO_CREATE); // Bind System service Intent systemServiceIntent = new Intent(MainActivity.this, SystemService.class); bindService(systemServiceIntent, mSystemServiceConnection, Context.BIND_AUTO_CREATE); }
Example #11
Source File: MainActivity.java From CameraColorPicker with Apache License 2.0 | 6 votes |
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); mToolbar = (Toolbar) findViewById(R.id.activity_main_toolbar); mToolbar.setTitle(R.string.app_name); setSupportActionBar(mToolbar); mCurrentPageId = PAGE_ID_COLOR_ITEM_LIST; mColorItemListPage = new ColorItemListPage(this); mColorItemListPage.setListener(this); mPaletteListPage = new PaletteListPage(this); mPaletteListPage.setListener(this); mFab = (FloatingActionButton) findViewById(R.id.activity_main_fab); mFab.setOnClickListener(this); final MyPagerAdapter adapter = new MyPagerAdapter(); mTabs = (PagerSlidingTabStrip) findViewById(R.id.activity_main_tabs); mViewPager = (ViewPager) findViewById(R.id.activity_main_view_pager); mViewPager.setAdapter(adapter); mTabs.setViewPager(mViewPager); mTabs.setOnPageChangeListener(this); mMainActivityFlavor = new MainActivityFlavor(this); }
Example #12
Source File: TvShowLibraryOverviewFragment.java From Mizuu with Apache License 2.0 | 6 votes |
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View v = inflater.inflate(R.layout.viewpager_with_tabs, container, false); if (MizLib.hasLollipop()) ((ActionBarActivity) getActivity()).getSupportActionBar().setElevation(0); mViewPager = (ViewPager) v.findViewById(R.id.awesomepager); mViewPager.setPageMargin(MizLib.convertDpToPixels(getActivity(), 16)); mTabs = (PagerSlidingTabStrip) v.findViewById(R.id.tabs); mViewPager.setAdapter(new PagerAdapter(getChildFragmentManager())); mTabs.setViewPager(mViewPager); mTabs.setVisibility(View.VISIBLE); // Work-around a bug that sometimes happens with the tabs mViewPager.setCurrentItem(0); if (MizLib.hasLollipop()) mTabs.setElevation(1f); return v; }
Example #13
Source File: MarkActivity.java From Jreader with GNU General Public License v2.0 | 6 votes |
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.markactivity); dm = getResources().getDisplayMetrics(); typeface = Typeface.createFromAsset(this.getAssets(),"font/QH.ttf"); button_back = (ImageButton) findViewById(R.id.back); title = (TextView) findViewById(R.id.bookname); ViewPager viewPager = (ViewPager) findViewById(R.id.pager); pagerSlidingTabStrip = (PagerSlidingTabStrip) findViewById(R.id.tabs); setTabsValue(); Intent intent = getIntent(); bookpath_intent = intent.getStringExtra("bookpath"); bookname_intent = intent.getStringExtra("bookname"); viewPager.setAdapter(new MyPagerAdapter(getSupportFragmentManager())); pagerSlidingTabStrip.setViewPager(viewPager); button_back.setOnClickListener(this); title.setText(bookname_intent); title.setTypeface(typeface); }
Example #14
Source File: EmojiKeyboardView.java From Game-of-Thrones with Apache License 2.0 | 6 votes |
@Override protected void onFinishInflate() { super.onFinishInflate(); pager = ((ViewPager) findViewById(R.id.pager)); strip = (PagerSlidingTabStrip) findViewById(R.id.tabs_strip); strip.setShouldExpand(true); Adapter adapter = new Adapter(getContext()); pager.setAdapter(adapter); strip.setViewPager(pager); backspace = findViewById(R.id.backspace); backspace.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { callback.backspaceClicked(); } }); if (adapter.recentIds.length == 0) { pager.setCurrentItem(1); } }
Example #15
Source File: StatisticsActivity.java From Simple-Solitaire with GNU General Public License v3.0 | 6 votes |
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activty_statistics); ActionBar actionBar = getSupportActionBar(); if (actionBar != null) { actionBar.setDisplayHomeAsUpEnabled(true); } PagerSlidingTabStrip tabs = findViewById(R.id.tabs); tabs.setAllCaps(false); ViewPager pager = findViewById(R.id.pager); TabsPagerAdapter adapter = new TabsPagerAdapter(getSupportFragmentManager(), this); pager.setAdapter(adapter); tabs.setViewPager(pager); }
Example #16
Source File: AboutActivity.java From Simple-Solitaire with GNU General Public License v3.0 | 6 votes |
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activty_about); ActionBar actionBar = getSupportActionBar(); if (actionBar != null) { actionBar.setDisplayHomeAsUpEnabled(true); } PagerSlidingTabStrip tabs = findViewById(R.id.tabs); ViewPager pager = findViewById(R.id.pager); TabsPagerAdapter adapter = new TabsPagerAdapter(getSupportFragmentManager(), this); pager.setAdapter(adapter); tabs.setViewPager(pager); }
Example #17
Source File: AboutActivity.java From Simple-Search with GNU General Public License v3.0 | 6 votes |
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activty_about); ActionBar actionBar = getSupportActionBar(); if (actionBar!=null) { actionBar.setDisplayHomeAsUpEnabled(true); } PagerSlidingTabStrip tabs = findViewById(R.id.tabs); ViewPager pager = findViewById(R.id.pager); TabsPagerAdapter adapter = new TabsPagerAdapter(getSupportFragmentManager(), this); pager.setAdapter(adapter); tabs.setViewPager(pager); }
Example #18
Source File: MainActivity.java From aptoide-client with GNU General Public License v2.0 | 5 votes |
protected void bindViews() { mViewPager = (ViewPager )findViewById(R.id.pager); mDrawerLayout = (DrawerLayout )findViewById(R.id.drawer_layout); mToolbar = (Toolbar )findViewById(R.id.toolbar); mNavigationView = (NavigationView )findViewById(R.id.nav_view); tabs = (PagerSlidingTabStrip )findViewById(R.id.tabs); }
Example #19
Source File: MovieCoverFanartBrowser.java From Mizuu with Apache License 2.0 | 5 votes |
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); MizuuApplication.setupTheme(this); if (MizLib.hasLollipop()) getSupportActionBar().setElevation(0); mTmdbId = getIntent().getExtras().getString("tmdbId"); mCollectionId = getIntent().getExtras().getString("collectionId"); mToolbarColor = getIntent().getExtras().getInt(IntentKeys.TOOLBAR_COLOR); mTmdbApiKey = MizLib.getTmdbApiKey(this); mProgressBar = (ProgressBar) findViewById(R.id.progressbar); mProgressBar.setVisibility(View.VISIBLE); mViewPager = (ViewPager) findViewById(R.id.awesomepager); mViewPager.setOffscreenPageLimit(2); mViewPager.setPageMargin(MizLib.convertDpToPixels(this, 16)); mTabs = (PagerSlidingTabStrip) findViewById(R.id.tabs); mTabs.setVisibility(View.GONE); if (savedInstanceState != null) { mJson = savedInstanceState.getString("json", ""); mBaseUrl = savedInstanceState.getString("baseUrl"); mCollection = savedInstanceState.getString("collection"); setupActionBarStuff(); mViewPager.setCurrentItem(savedInstanceState.getInt("tab", 0)); } else { new MovieLoader(getApplicationContext()).execute(mTmdbId, mCollectionId); } }
Example #20
Source File: FilePickerFragment.java From FilePicker with Apache License 2.0 | 5 votes |
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View v = inflater.inflate(R.layout.fragment_filepager, container, false); mDirPager = (ViewPager)v.findViewById(R.id.pager); mDirPager.setAdapter(mDirPagerAdapter); mIndicator = (PagerSlidingTabStrip)v.findViewById(R.id.indicator); mIndicator.setViewPager(mDirPager); mIndicator.setOnPageChangeListener(this); return v; }
Example #21
Source File: ProfileFragment.java From flow-android with MIT License | 5 votes |
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { // Inflate the layout for this fragment View rootView = inflater.inflate(R.layout.profile_layout, container, false); userPhotoImageView = (ImageView) rootView.findViewById(R.id.user_image); userName = (TextView) rootView.findViewById(R.id.user_name); userProgram = (TextView) rootView.findViewById(R.id.user_program); coverPhotoImageView = (ImageView) rootView.findViewById(R.id.cover_photo); viewPager = (ViewPager) rootView.findViewById(R.id.pager); // Note: this is sorta cheating. We might need to decrease this number so that we don't run into memory issues. viewPager.setOffscreenPageLimit(3); Integer tabID = getArguments() != null ? getArguments().getInt(Constants.TAB_ID_KEY) : null; if (tabID == null) { // Set default tab to Schedule viewPager.setCurrentItem(Constants.PROFILE_SCHEDULE_PAGE_INDEX); } else { viewPager.setCurrentItem(tabID); } init(); if (getArguments() != null) { mProfileID = getArguments().getString(Constants.PROFILE_ID_KEY); } profilePagerAdapter = new ProfilePagerAdapter(getChildFragmentManager(), getArguments(), mProfileID == null); viewPager.setAdapter(profilePagerAdapter); tabs = (PagerSlidingTabStrip) rootView.findViewById(R.id.pager_tabs); tabs.setViewPager(viewPager); initLoaders(); populateData(); return rootView; }
Example #22
Source File: ShowCoverFanartBrowser.java From Mizuu with Apache License 2.0 | 5 votes |
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); MizuuApplication.setupTheme(this); if (MizLib.hasLollipop()) getSupportActionBar().setElevation(0); getSupportActionBar().setDisplayHomeAsUpEnabled(true); tvdbId = getIntent().getExtras().getString("id"); mToolbarColor = getIntent().getExtras().getInt(IntentKeys.TOOLBAR_COLOR); mProgressBar = (ProgressBar) findViewById(R.id.progressbar); mProgressBar.setVisibility(View.VISIBLE); mViewPager = (ViewPager) findViewById(R.id.awesomepager); mViewPager.setOffscreenPageLimit(2); mViewPager.setPageMargin(MizLib.convertDpToPixels(this, 16)); mTabs = (PagerSlidingTabStrip) findViewById(R.id.tabs); mTabs.setVisibility(View.GONE); setupActionBarStuff(); if (savedInstanceState != null) { mViewPager.setCurrentItem(savedInstanceState.getInt("tab", 0)); } }
Example #23
Source File: ViewPagerDemoActivity.java From SwipeRefreshLayout with Apache License 2.0 | 5 votes |
protected void setupViews() { setupCustomSwipeRefreshLayout(); // setup other views setupViewPagerViews(); mViewPager = (ViewPager) findViewById(R.id.viewpager); mViewPager.setAdapter(new ViewPagerAdapter(viewPagerTitles, viewPagerViews)); PagerSlidingTabStrip tabs = (PagerSlidingTabStrip) findViewById(R.id.tabs); tabs.setViewPager(mViewPager); tabs.setAllCaps(false); }
Example #24
Source File: CollectionFragment.java From v2ex-daily-android with Apache License 2.0 | 5 votes |
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View rootView = inflater.inflate(R.layout.fragment_collection, container, false); mPagerSlidingTabStrip = (PagerSlidingTabStrip) rootView.findViewById(R.id.tab_fragment_collection); mViewPager = (ViewPager) rootView.findViewById(R.id.viewpager_fragment_collection); mEmptyText = (TextView) rootView.findViewById(R.id.txt_fragment_collection_empty); return rootView; }
Example #25
Source File: SimpleDemoFragment.java From ScrollableLayout with MIT License | 5 votes |
@Override public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { View layout = inflater.inflate(R.layout.fragment_simple, container, false); ViewPager viewPager = (ViewPager) layout.findViewById(R.id.viewpager); // 头部图片集 ViewPager vpImage = (ViewPager) layout.findViewById(R.id.imagepager); vpImage.setAdapter(new MyHeadPicAdapter(getActivity())); // ScrollableLayout mScrollLayout = (ScrollableLayout) layout.findViewById(R.id.scrollableLayout); PagerSlidingTabStrip pagerSlidingTabStrip = (PagerSlidingTabStrip) layout.findViewById(R.id.pagerStrip); initFragmentPager(viewPager, pagerSlidingTabStrip, mScrollLayout); return layout; }
Example #26
Source File: EmojiDrawer.java From Silence with GNU General Public License v3.0 | 5 votes |
private void initializeResources(View v) { Log.w("EmojiDrawer", "initializeResources()"); this.pager = (ViewPager) v.findViewById(R.id.emoji_pager); this.strip = (PagerSlidingTabStrip) v.findViewById(R.id.tabs); RepeatableImageKey backspace = (RepeatableImageKey)v.findViewById(R.id.backspace); backspace.setOnKeyEventListener(new KeyEventListener() { @Override public void onKeyEvent() { if (listener != null) listener.onKeyEvent(DELETE_KEY_EVENT); } }); }
Example #27
Source File: MainActivity.java From Douban with GNU General Public License v2.0 | 5 votes |
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.activity_main); pagerTab = (PagerSlidingTabStrip) findViewById(R.id.pager_tabs); pager = (ViewPager) findViewById(R.id.pager); pager.setOffscreenPageLimit(3); pager.setAdapter(new PagerAdapter(getSupportFragmentManager())); pagerTab.setViewPager(pager); DisplayMetrics dm = getResources().getDisplayMetrics(); float padding = TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 8, dm); }
Example #28
Source File: StoresActivity.java From aptoide-client with GNU General Public License v2.0 | 5 votes |
protected void bindViews() { mPagerSlidingTabStrip = (PagerSlidingTabStrip )findViewById(R.id.tabs); mViewPager = (ViewPager )findViewById(R.id.pager); mToolbar = (Toolbar )findViewById(R.id.toolbar); mAppBar = (AppBarLayout )findViewById(R.id.appbar); progressBar = (ProgressBar )findViewById(R.id.progress_bar); layoutNoNetwork = (ScrollView )findViewById(R.id.no_network_connection); layoutError = (ScrollView )findViewById(R.id.error); retryError = (TextView )findViewById(R.id.retry_error); retryNoNetwork = (TextView )findViewById(R.id.retry_no_network); }
Example #29
Source File: HomeFragment.java From Material-Design-Example with Apache License 2.0 | 4 votes |
@Override public void loadViewComponents() { mPagerSlidingTabStrip = (PagerSlidingTabStrip) mViewHome.findViewById(R.id.fragment_home_pager_sliding_tab); mViewPager = (ViewPager) mViewHome.findViewById(R.id.fragment_home_view_pager); }
Example #30
Source File: QuickReturnTwitterActivity.java From QuickReturn with Apache License 2.0 | 4 votes |
@Override public PagerSlidingTabStrip getTabs() { return mTabs; }