Questions tagged [android-pagetransformer]
64 questions
19
votes
3 answers
Changing the speed of transition of ViewPager and setCurrentItem
I have a ViewPager that I want to rotate automatically every 5 seconds, whilst also allowing the user to swipe too. However, when I set the automatic change, the transition animation between pages happens really quickly, and I want this to be…

Russ Wheeler
- 2,590
- 5
- 30
- 57
8
votes
2 answers
Why notifyDataSetChanged blow up PagerTransformer in ViewPager2?
I am using ViewPager2 version 1.0.0-beta05, with a RecyclerView.Adapter, and ZoomOutPageTransformer, I found that when we call notifyDataSetChanged, the ViewPager view blow up.
In Version 1.0.0-alpha01, they said that notifyDataSetChanged fully…
user12221228
7
votes
0 answers
PageTransformer has "snapping" effect when animating elevation
I have a ViewPager that is using a PageTransformer. I'm using the PageTransformer to animate the elevation of the cards inside my ViewPager whenever I scroll. Here is the code:
mViewPager.setPageTransformer(false, new ViewPager.PageTransformer() {
…

Orbit
- 2,985
- 9
- 49
- 106
7
votes
1 answer
Centered View Pager with next and previous preview and pagetransformer
I am implementing a ViewPager which shows next and previous items and also animates page transitions using ViewPager.PageTransformer. It has a zoom out and fade out effect. For showing next and previous, I am using negative PageMargin, padding on…

gitter
- 1,706
- 1
- 20
- 32
4
votes
3 answers
Android ViewPager - Smooth Transition for this Design
I can't really figure out the math to do smooth transition for the following design. Any help would be greatly appreciated :).
During transition, the pages are jumping up and down but I would like them to be smooth…

Krishnaraj
- 2,360
- 1
- 32
- 55
4
votes
2 answers
ViewPager with multiple PageTransformer (PageTransformers at Runtime)
I have a custom requirement with my ViewPager. What I want is my pager should have a horizontal pageTransformer like DepthPageTransformer by default. Now on the screen I have a button on press of which I want my current page to slide on top from…

Atul O Holic
- 6,692
- 4
- 39
- 74
4
votes
3 answers
How to Implement PageTransformer with Swipeable Tabs
In my example code i have three Swipeable Tabs in MainActivity.java namely : Android, IOS and WINDOWS and i am using swipe to switch between Tabs.
Now, i have to implement PageTransformer with Swipeable Tabs, so here i need your help, is it…

Sun
- 6,768
- 25
- 76
- 131
3
votes
1 answer
Custom animation by overriding transformPage(View view, float position) method of PageTransformer class of View Pager
I want my view pager animation like below image from left and right side both.
I have 3 pages. the middle one should not move. when I will move left or right only left or the right page will scroll with little fade in middle screen.
I am making…

Rohit Gupta
- 55
- 1
- 8
3
votes
0 answers
Android - ViewPager + FragmentStatePagerAdapter + PageTransformer
In my app I use a ViewPager in conjunction with PageTransformer to display some data list as a card deck. That list is sometimes refreshed and it contains plenty of items in a common case, so I use FragmentStatePagerAdapter with needed page…

StopTalking
- 95
- 1
- 5
3
votes
0 answers
PageTransformer with infinite viewpager
I've been combining TabletTransformer(Use source code from here) with a Infinite View Pager Looping.
Results was not what we expected. It has no compiling error, but blank page could happened when swipe between pages.
Main Activity
public class…

Wei Loon Wong
- 450
- 1
- 7
- 23
3
votes
1 answer
What is the best way to achieve an elastic / bounce animation effect in ViewPager?
I want to display a ViewPager with a bounce / elastic sliding effect. I suppose that this is possible using some combination of a PageTransformer and a BounceInterpolator.
What I do not know is how. Thus far I have been unable to achieve this.
A…

Yash Sampat
- 30,051
- 12
- 94
- 120
3
votes
0 answers
Glitching fade animation at endless ViewPager
I have encountered a really strange behaviour in one of my apps, and im really hoping that you guys can give me some hints on how to solve this.
Setup:
Im developing kind of a presentation application. Multiple images and/or videos should be…

W3hri
- 1,563
- 2
- 18
- 31
3
votes
0 answers
ViewPager ViewPager.PageTransformer causes unusual click
Here is my scenario. In a ViewPager i have two fragment. In second Fragment i have a list of item & each item is clickable. I used ViewPager.PageTransformer to animate my ViewPager to go from one fragment to another.
I used this :…

Sayem
- 4,891
- 3
- 28
- 43
3
votes
0 answers
Android ViewPager Transition
here is a nice gif of what happened in flicker app in the bottom this site Great animations with PageTransformer
here is what happening and i'm interested in:
1) first the fliker logo is large
2) by sliding next page the log scale down and move with…

mehdok
- 1,499
- 4
- 29
- 54
2
votes
0 answers
How to get vertical ViewPager curl page animation in Android
I am implementing a ViewPager for vertical scrolling. I have used ViewPager.PageTransformer for animation.
Below is my code.
public class VerticalPageTransformer implements ViewPager.PageTransformer {
private float MIN_SCALE = 1f;
public…

Mohd Sakib Syed
- 1,679
- 1
- 25
- 42