Added in API level 1

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

Creates a new empty ImageSwitcher.

ImageSwitcher(context: Context!, attrs: AttributeSet!)

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

Public methods
open CharSequence!

open Unit

Sets a new drawable on the ImageSwitcher.

open Unit

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

open Unit

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

Inherited functions