I am searching for this for my whole day but I cant find any library or code to achieve this view pager animation
. I want to achieve exactly like this(As shown in below image) center image is now showing image and previous and next image will be displayed in back. Thanks in advance please help me by sharing your knowledge. Thanks in advance.
Asked
Active
Viewed 616 times
-1

Pravin Divraniya
- 4,223
- 2
- 32
- 49

Naruto-Uzumaki
- 21
- 1
- 9
-
Check [this](http://stackoverflow.com/q/30572605/3022836) – Kunu Aug 01 '16 at 06:05
-
it is not working for me @Kunu – Naruto-Uzumaki Aug 01 '16 at 06:07
-
im using Viewpager not Viewpage Fragment. – Naruto-Uzumaki Aug 01 '16 at 06:11
2 Answers
1
Try this:
mViewPager.setClipToPadding(false);
mViewPager.setPageMargin(Utils.dpToPx(24));
mViewPager.setPadding(Utils.dpToPx(44), 0, Utils.dpToPx(44), 0);

Embydextrous
- 1,611
- 1
- 12
- 20
0
You are looking for is here.
You customize them according to your design or you can get basic idea how is works might be help full for you.

Sohail Zahid
- 8,099
- 2
- 25
- 41