Added in API level 11

AdapterViewFlipper


open class AdapterViewFlipper : AdapterViewAnimator
kotlin.Any
   ↳ android.view.View
   ↳ android.view.ViewGroup
   ↳ android.widget.AdapterView<android.widget.Adapter>
   ↳ android.widget.AdapterViewAnimator
   ↳ android.widget.AdapterViewFlipper

Simple ViewAnimator that will animate between two or more views that have been added to it. Only one child is shown at a time. If requested, can automatically flip between each child at a regular interval.

Summary

XML attributes
android:autoStart When true, automatically start animating.
android:flipInterval
Inherited XML attributes
Inherited constants
Public constructors

AdapterViewFlipper(context: Context!, attrs: AttributeSet!, defStyleAttr: Int)

AdapterViewFlipper(context: Context!, attrs: AttributeSet!, defStyleAttr: Int, defStyleRes: Int)

Public methods
open Unit

Called by an android.appwidget.AppWidgetHost to indicate that it will be automatically advancing the views of this AdapterViewFlipper by calling AdapterViewFlipper.advance() at some point in the future.

open CharSequence!

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

open Int

Returns the flip interval, in milliseconds.

open Boolean

Returns true if this view automatically calls startFlipping() when it becomes attached to a window.

open Boolean

Returns true if the child views are flipping.

open Unit
setAdapter(adapter: Adapter!)

Sets the adapter that provides the data and the views to represent the data in this widget.

open Unit
setAutoStart(autoStart: Boolean)

Set if this view automatically calls startFlipping() when it becomes attached to a window.

open Unit
setFlipInterval(flipInterval: Int)

How long to wait before flipping to the next view.

open Unit

Manually shows the next child.

open Unit

Manually shows the previous child.

open Unit

Start a timer to cycle through child views

open Unit

No more flips

Protected methods
open Unit

This is called when the view is attached to a window.

open Unit

This is called when the view is detached from a window.

open Unit

Called when the window containing has change its visibility (between GONE, INVISIBLE, and VISIBLE).

Inherited functions