com.ouattararomuald.slider / ImageSlider
ImageSlider
class ImageSlider : ConstraintLayout
Layout manager that allows auto-flip left and right through images.
Attr ref com.ouattararomuald.slider.R.styleable#ImageSlider_autoRecoverAfterTouchEvent
Attr ref com.ouattararomuald.slider.R.styleable#ImageSlider_initWithAutoCycling
Attr ref com.ouattararomuald.slider.R.styleable#ImageSlider_indicatorBackground
Attr ref com.ouattararomuald.slider.R.styleable#ImageSlider_initialSlideDelay
Attr ref com.ouattararomuald.slider.R.styleable#ImageSlider_indicatorFillColor
Attr ref com.ouattararomuald.slider.R.styleable#ImageSlider_indicatorPageColor
Attr ref com.ouattararomuald.slider.R.styleable#ImageSlider_indicatorRadius
Attr ref com.ouattararomuald.slider.R.styleable#ImageSlider_indicatorSnap
Attr ref com.ouattararomuald.slider.R.styleable#ImageSlider_indicatorStrokeColor
Attr ref com.ouattararomuald.slider.R.styleable#ImageSlider_indicatorStrokeWidth
Attr ref com.ouattararomuald.slider.R.styleable#ImageSlider_indicatorsLeftMargin
Attr ref com.ouattararomuald.slider.R.styleable#ImageSlider_indicatorsTopMargin
Attr ref com.ouattararomuald.slider.R.styleable#ImageSlider_indicatorsRightMargin
Attr ref com.ouattararomuald.slider.R.styleable#ImageSlider_indicatorsBottomMargin
Attr ref com.ouattararomuald.slider.R.styleable#ImageSlider_sliderBackground
Attr ref com.ouattararomuald.slider.R.styleable#ImageSlider_slideTransitionInterval
Constructors
<init> | ImageSlider(context: Context ) ImageSlider(context: Context , attrs: AttributeSet ?) ImageSlider(context: Context , attrs: AttributeSet ?, defStyleAttr: Int ) |
Properties
adapter | var adapter: SliderAdapter ? Adapter that populates this image slider. |
isPageIndicatorVisible | var isPageIndicatorVisible: Boolean Returns true when the page indicator visibility is View.VISIBLE, false otherwise. |
pageTransformer | var pageTransformer: PageTransformer ? Page transformer representing the animation you want to apply to each slide transition. |
Functions
onInterceptTouchEvent | fun onInterceptTouchEvent(event: MotionEvent ): Boolean |
setIndicatorsBottomMargin | fun setIndicatorsBottomMargin(bottom: Int ): Unit Sets the bottom margin in pixels under the indicators. |
setIndicatorsMargin | fun setIndicatorsMargin(left: Int , top: Int , right: Int , bottom: Int ): Unit Sets the margin in pixels |
setOnPageChangeListener | fun setOnPageChangeListener(listener: OnPageChangeListener ): Unit Sets a page change listener which will receive forwarded events. |
startAutoLooping | fun startAutoLooping(): Unit Starts slides auto transitions. |
stopAutoLooping | fun stopAutoLooping(): Unit Stops slides auto transitions. |