android.support.v13.app.FragmentPagerAdapter Java Examples
The following examples show how to use
android.support.v13.app.FragmentPagerAdapter.
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: ProfileActivity.java From Klyph with MIT License | 6 votes |
public int getScrollY() { IKlyphFragment f = (IKlyphFragment) ((FragmentPagerAdapter) getPagerAdapter()).getItem(getViewPager().getCurrentItem()); if (f == null || f.getListView() == null) return 0; listPadding = f.getListView().getPaddingTop(); View c = f.getListView().getChildAt(0); if (c == null) { return 0; } int firstVisiblePosition = f.getListView().getFirstVisiblePosition(); int top = c.getTop(); int headerHeight = 0; if (firstVisiblePosition >= 1) { headerHeight = fakeHeaderHeight; } // Log.d("UserActivity", "getScrollY: " + top + " " + headerHeight); return -top + firstVisiblePosition * c.getHeight() + headerHeight + listPadding; }
Example #2
Source File: AlbumActivity.java From Klyph with MIT License | 5 votes |
@Override protected FragmentPagerAdapter getPagerAdapter() { if (adapter == null) adapter = new TabsAdapter(getFragmentManager(), getViewPager()); return adapter; }
Example #3
Source File: UserActivity.java From Klyph with MIT License | 5 votes |
@Override protected FragmentPagerAdapter getPagerAdapter() { if (adapter == null) adapter = new TabsAdapter(this, getFragmentManager(), getPageIndicator()); return adapter; }
Example #4
Source File: PageActivity.java From Klyph with MIT License | 5 votes |
@Override protected FragmentPagerAdapter getPagerAdapter() { if (adapter == null) adapter = new TabsAdapter(this, getFragmentManager(), getPageIndicator()); return adapter; }
Example #5
Source File: GroupActivity.java From Klyph with MIT License | 5 votes |
@Override protected FragmentPagerAdapter getPagerAdapter() { if (adapter == null) adapter = new TabsAdapter(this, getFragmentManager(), getPageIndicator()); return adapter; }
Example #6
Source File: UserActivity2.java From Klyph with MIT License | 5 votes |
@Override protected FragmentPagerAdapter getPagerAdapter() { if (adapter == null) adapter = new TabsAdapter(this, getFragmentManager(), getPageIndicator()); return adapter; }