S
S
Sworfly2015-08-03 16:54:39
Android
Sworfly, 2015-08-03 16:54:39

How to link the progress of one animation to another in Android OS?

Good afternoon, colleagues!
Tell me, what can help synchronize the transition animation between pages in the ViewPager and the transition in the overlying layer?
Maybe you can get some kind of callback and move objects from it with your hands, or are there any "anchors" that you can use?
PS. If someone can point me to literature on animation, which at a basic level tells about the types of animation, differences and, most importantly, applicability to various situations, I will be very grateful.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
FoxInSox, 2015-08-03
@FoxInSox

1. open Google
2. type in keywords: android viewpager page change handler
3. third link to documentation (can't be): developer.android.com/reference/android/support/v4...
4. read:
onPageScrolled(int position, float positionOffset, int positionOffsetPixels)
This method will be invoked when the current page is scrolled, either as part of a programmatically initiated smooth scroll or a user initiated touch scroll.

Incredible.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question