Hello I have a viewpager with several pages(using a fragment state pager), and some pngs as backgrounds to those pages. I already followed the Displaying Bitmaps in the Ui (
None of above solutions worked in my case!
I found a library which works around the issue, and additionally incorporates few more interesting features. Take a look at it here!
Try this:
In gradle
compile 'com.ToxicBakery.viewpager.transforms:view-pager-transforms:1.2.32@aar'
onCreate
viewPager.setPageTransformer(true, new DefaultTransformer());
You can get some non standard efects by changing second argument, though not all of them work properly.