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

XML Attributes

android:flipInterval

Related Methods

Public Constructors

public ViewFlipper (Context context)

public ViewFlipper (Context context, AttributeSet attrs)

Public Methods

public boolean isFlipping ()

Returns true if the child views are flipping.

public void setFlipInterval (int milliseconds)

How long to wait before flipping to the next view

Parameters
milliseconds time in milliseconds

public void startFlipping ()

Start a timer to cycle through child views

public void stopFlipping ()

No more flips