Image Slider
An image slider for android that let you pick the image loader library that best suits your needs.
Usage
Create a simple slider with the following code:
activity_main.xml
MainActivity.kt
Slider
comes with Picasso as dependency to load an Images. If you want to use another library,
all you need is to extends ImageLoader#Factory
and pass your factory to SliderAdapter
.
Animations
A slider needs animations between each transition. To create a transition, all you need is to implement ViewPager.PageTransformer
and pass it to ImageSlider#pageTransformer
:
Atributes
The attributes below are available for usage in your xml
files:
Attributes | Descriptions |
---|---|
autoRecoverAfterTouchEvent | Determines whether or not the ImageSlider should recover after user touch event. |
indicatorBackground | Reference to a background to be applied to Slider's indicator. |
initialSlideDelay | Delay in milliseconds before the first slide change. |
initWithAutoCycling | Determines whether or not the ImageSlider should immediately starts its transitions. |
sliderBackground | Reference to a background to be applied to Slider. |
slideTransitionInterval | Time in milliseconds between successive slide changes. |
Download
Download the latest AAR or grab via Gradle:
or Maven:
Snapshots of the development version are available in Sonatype's snapshots repository.