Created
October 30, 2013 02:17
-
-
Save Richie97/7226214 to your computer and use it in GitHub Desktop.
Pager that peeks on either side
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int pagerWidth = size.x - getResources().getDimensionPixelSize(R.dimen.hero_pager_margins); | |
pager.setLayoutParams(new RelativeLayout.LayoutParams(Math.max(pagerWidth, 1), getResources().getDimensionPixelSize(R.dimen.hero_pager_height))); | |
pager.setClipChildren(false); | |
pager.setPageMargin(-getResources().getDimensionPixelSize(R.dimen.hero_pager_margins)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment