Guest User

Untitled

a guest
Jul 21st, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. setPageMargin(int marginPixels)
  2. setPageMarginDrawable(drawable d)
  3. setPageMarginDrawable(int resId)
  4.  
  5. ViewPager pager = (ViewPager) findViewById(R.id.pager);
  6.  
  7. /**
  8. * This method will be invoked when the current page is scrolled, either as part
  9. * of a programmatically initiated smooth scroll or a user initiated touch scroll.
  10. *
  11. * @param position Position index of the first page currently being displayed.
  12. * Page position+1 will be visible if positionOffset is nonzero.
  13. * @param positionOffset Value from [0, 1) indicating the offset from the page at position.
  14. * @param positionOffsetPixels Value in pixels indicating the offset from position.
  15. */
  16. public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels);
Add Comment
Please, Sign In to add comment