完整内容,请参考:http://www.zhdoc.net/android/reference/android/widget/ViewFlipper.html
ViewFlipper
public class ViewFlipper
extends ViewAnimator
java.lang.Object | |||||
↳ | android.view.View | ||||
↳ | android.view.ViewGroup | ||||
↳ | android.widget.FrameLayout | ||||
↳ | android.widget.ViewAnimator | ||||
↳ | android.widget.ViewFlipper |
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.
简化的ViewAnimator
类,它将在两个或多个视图之间进行动画。每次只能显示一个子视图。如果需要,可以以一个固定的时间间隔在每个子视图之间翻转。
摘要
XML属性 | |
---|---|
android:autoStart | 当为 true 时, 自动开始动画播放。 May be a boolean value, such as " |
android:flipInterval |
继承XML属性 | |
---|---|
![]() android.widget.ViewAnimator
| |
![]() android.widget.FrameLayout
| |
![]() android.view.ViewGroup
| |
![]() android.view.View
|
继承常量 |
---|
![]() android.view.ViewGroup
|
![]() android.view.View
|
继承字段 |
---|
![]() android.view.View
|
Public构造方法 | |
---|---|
ViewFlipper(Context context) | |
ViewFlipper(Context context, AttributeSet attrs) |
Public方法 | |
---|---|
CharSequence | getAccessibilityClassName() Return the class name of this object to be used for accessibility purposes. |
boolean | isAutoStart() Returns true if this view automatically calls |
boolean | isFlipping() Returns true if the child views are flipping. |
void | setAutoStart(boolean autoStart) Set if this view automatically calls |
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 |