public interface BaseAnimationInterface
ViewPagerEx animation (PagerTransformer) starts or ends.
There are two items you have to know. The first item is the slider you are dragging. This item
I call it Current Item. The second is the slider that gonna to show. I call that Next Item.
When you start to drag the slider in front of you, onPrepareCurrentItemLeaveScreen() and
onPrepareNextItemShowInScreen will be called.
When you finish drag, the onCurrentItemDisappear and onNextItemAppear will be invoked.
You can see a demo class DescriptionAnimation,
this class gives the description text an animation.| 限定符和类型 | 方法和说明 |
|---|---|
void |
onCurrentItemDisappear(View view)
Current item totally disappear from screen.
|
void |
onNextItemAppear(View view)
Next item totally show in screen.
|
void |
onPrepareCurrentItemLeaveScreen(View current)
When the current item prepare to start leaving the screen.
|
void |
onPrepareNextItemShowInScreen(View next)
The next item which will be shown in ViewPager/
|
void onPrepareCurrentItemLeaveScreen(View current)
current - void onPrepareNextItemShowInScreen(View next)
next - void onCurrentItemDisappear(View view)
view - void onNextItemAppear(View view)
view -