AndroidImageSlider icon indicating copy to clipboard operation
AndroidImageSlider copied to clipboard

Close activity after last slide

Open Vol-i opened this issue 12 years ago • 3 comments

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.

Vol-i avatar Aug 28 '14 07:08 Vol-i

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.

daimajia avatar Aug 29 '14 00:08 daimajia

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.

angryyogurt avatar Jan 08 '15 06:01 angryyogurt

You can add a OnPageChangeListener to the SliderLayout and be notified when the last slide is displayed https://github.com/daimajia/AndroidImageSlider/pull/100

massimobio avatar May 09 '15 04:05 massimobio