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!

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!)

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

open Unit

open Unit

Inherited functions
Inherited properties

XML attributes

android:autoStart

android:autoStart
When true, automatically start animating.

May be a boolean value, such as "true" or "false".

android:flipInterval

android:flipInterval

Public constructors

AdapterViewFlipper

Added in API level 11
AdapterViewFlipper(context: Context!)

AdapterViewFlipper

Added in API level 11
AdapterViewFlipper(
    context: Context!,
    attrs: AttributeSet!)

AdapterViewFlipper

Added in API level 11
AdapterViewFlipper(
    context: Context!,
    attrs: AttributeSet!,
    defStyleAttr: Int)

AdapterViewFlipper

Added in API level 11
AdapterViewFlipper(
    context: Context!,
    attrs: AttributeSet!,
    defStyleAttr: Int,
    defStyleRes: Int)

Public methods

fyiWillBeAdvancedByHostKThx

Added in API level 11
open fun fyiWillBeAdvancedByHostKThx(): 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. This allows AdapterViewFlipper to prepare by no longer Advancing its children.

getAccessibilityClassName

Added in API level 23
open fun getAccessibilityClassName(): CharSequence!

getFlipInterval

Added in API level 16
open fun getFlipInterval(): Int

Returns the flip interval, in milliseconds.

Return
Int the flip interval in milliseconds

isAutoStart

Added in API level 11
open fun isAutoStart(): Boolean

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

isFlipping

Added in API level 11
open fun isFlipping(): Boolean

Returns true if the child views are flipping.

setAdapter

Added in API level 11
open fun setAdapter(adapter: Adapter!): Unit
Parameters
adapter Adapter!: The adapter to use to create this view's content.

setAutoStart

Added in API level 11
open fun setAutoStart(autoStart: Boolean): Unit

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

setFlipInterval

Added in API level 11
open fun setFlipInterval(flipInterval: Int): Unit

How long to wait before flipping to the next view.

Parameters
flipInterval Int: flip interval in milliseconds

showNext

Added in API level 11
open fun showNext(): Unit

Manually shows the next child.

showPrevious

Added in API level 11
open fun showPrevious(): Unit

Manually shows the previous child.

startFlipping

Added in API level 11
open fun startFlipping(): Unit

Start a timer to cycle through child views

stopFlipping

Added in API level 11
open fun stopFlipping(): Unit

No more flips

Protected methods

onAttachedToWindow

Added in API level 11
protected open fun onAttachedToWindow(): Unit

onDetachedFromWindow

Added in API level 11
protected open fun onDetachedFromWindow(): Unit

onWindowVisibilityChanged

Added in API level 11
protected open fun onWindowVisibilityChanged(visibility: Int): Unit
Parameters
visibility Int: The new visibility of the window. Value is android.view.View#VISIBLE, android.view.View#INVISIBLE, or android.view.View#GONE