Close activity after last slide
Hi, I want to close the activity that holds the slider after last item on slider. Is there a method or way that i can capture last slide is slided.
Hey, you can view this
https://github.com/daimajia/AndroidImageSlider/wiki/Slider-child-view-animation
you can do in onPrepareCurrentItemLeaveScreen , check if current is the last slide, if it is, then finish activity.
Hi, I have viewed https://github.com/daimajia/AndroidImageSlider/wiki/Slider-child-view-animation but I still have no idea about how to get current slide position in DescriptionAnimation. Do you have any samples to show me how to do something after last item.
You can add a OnPageChangeListener to the SliderLayout and be notified when the last slide is displayed https://github.com/daimajia/AndroidImageSlider/pull/100