public class

ViewFlipper

extends ViewAnimator
java.lang.Object
   ↳ android.view.View
     ↳ android.view.ViewGroup
       ↳ android.widget.FrameLayout
         ↳ android.widget.ViewAnimator
           ↳ android.widget.ViewFlipper

Class Overview

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
Attribute Name Related Method Description
android:flipInterval  
[Expand]
Inherited XML Attributes
From class android.widget.ViewAnimator
From class android.widget.FrameLayout
From class android.view.ViewGroup
From class android.view.View
[Expand]
Inherited Constants
From class android.view.ViewGroup
From class android.view.View
Public Constructors
ViewFlipper(Context context)
ViewFlipper(Context context, AttributeSet attrs)
Public Methods
boolean isFlipping()
Returns true if the child views are flipping.
void setFlipInterval(int milliseconds)
How long to wait before flipping to the next view
void startFlipping()
Start a timer to cycle through child views
void stopFlipping()
No more flips
[Expand]
Inherited Methods
From class android.widget.ViewAnimator
From class android.widget.FrameLayout
From class android.view.ViewGroup
From class android.view.View
From class java.lang.Object
From interface android.graphics.drawable.Drawable.Callback
From interface android.view.KeyEvent.Callback
From interface android.view.ViewManager
From interface android.view.ViewParent
From interface android.view.accessibility.AccessibilityEventSource

XML Attributes

android:flipInterval

Since: API Level

Related Methods

Public Constructors

public ViewFlipper (Context context)

Since: API Level 1

public ViewFlipper (Context context, AttributeSet attrs)

Since: API Level 1

Public Methods

public boolean isFlipping ()

Since: API Level 1

Returns true if the child views are flipping.

public void setFlipInterval (int milliseconds)

Since: API Level 1

How long to wait before flipping to the next view

Parameters
milliseconds time in milliseconds

public void startFlipping ()

Since: API Level 1

Start a timer to cycle through child views

public void stopFlipping ()

Since: API Level 1

No more flips