I have a ViewPager in which each of it\'s views is a representation of card on a deck. Each card has a shadow on the border using the ViewPager margin:
cards
Change to
cardsViewPager.setPageTransformer(true, new ScalePageTransformer(cardsViewPager));
First argument is the drawing order