Back to project page AndroidImageSlider.
The source code is released under:
MIT License
If you think the Android project AndroidImageSlider listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.daimajia.slider.library.Animations; //from w ww. ja va 2s .co m import android.view.View; /** * This interface gives you chance to inject your own animation or do something when the * {@link com.daimajia.slider.library.Tricks.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 {@link com.daimajia.slider.library.Animations.DescriptionAnimation}, * this class gives the description text an animation. */ public interface BaseAnimationInterface { /** * When the current item prepare to start leaving the screen. * @param current */ public void onPrepareCurrentItemLeaveScreen(View current); /** * The next item which will be shown in ViewPager/ * @param next */ public void onPrepareNextItemShowInScreen(View next); /** * Current item totally disappear from screen. * @param view */ public void onCurrentItemDisappear(View view); /** * Next item totally show in screen. * @param view */ public void onNextItemAppear(View view); }