ImageSwitcher

open class ImageSwitcher : ViewSwitcher
kotlin.Any
   ↳ android.view.View
   ↳ android.view.ViewGroup
   ↳ android.widget.FrameLayout
   ↳ android.widget.ViewAnimator
   ↳ android.widget.ViewSwitcher
   ↳ android.widget.ImageSwitcher

ViewSwitcher that switches between two ImageViews when a new image is set on it. The views added to an ImageSwitcher must all be ImageViews.

Summary

Inherited XML attributes
Inherited constants
Public constructors
<init>(context: Context!)

Creates a new empty ImageSwitcher.

<init>(context: Context!, attrs: AttributeSet!)

Creates a new empty ImageSwitcher for the given context and with the specified set attributes.

Public methods
open CharSequence!

Return the class name of this object to be used for accessibility purposes.

open Unit

Sets a new image on the ImageSwitcher with the given Uri.

open Unit

Sets a new drawable on the ImageSwitcher.

open Unit

Sets a new image on the ImageSwitcher with the given resource id.

Inherited functions