完整内容,请查看:http://www.zhdoc.net/android/reference/android/widget/ViewAnimator.html
ViewAnimator
public class ViewAnimator
extends FrameLayout
| java.lang.Object | ||||
| ↳ | android.view.View | |||
| ↳ | android.view.ViewGroup | |||
| ↳ | android.widget.FrameLayout | |||
| ↳ | android.widget.ViewAnimator | |||
Base class for a FrameLayout container that will perform animations when switching between its views.
FrameLayout容器的基类,它可以在视图之间转换时执行动画。
摘要
XML属性 | |
|---|---|
android:animateFirstView | 设定当首次显示ViewAnimation时,是否对当前view呈现动画效果。 |
android:inAnimation | 当视图被显示时,呈现动画效果的动画。 |
android:outAnimation | 当视图被隐藏时,呈现动画效果的动画。 |
继承XML属性 | |
|---|---|
android.widget.FrameLayout
| |
android.view.ViewGroup
| |
android.view.View
| |
继承常量 |
|---|
android.view.ViewGroup
|
android.view.View
|
继承字段 |
|---|
android.view.View
|
Public构造方法 | |
|---|---|
ViewAnimator(Context context) | |
ViewAnimator(Context context, AttributeSet attrs) | |
Public方法 | |
|---|---|
void | addView(View child, int index, ViewGroup.LayoutParams params) Adds a child view with the specified layout parameters. |
CharSequence | getAccessibilityClassName() Return the class name of this object to be used for accessibility purposes. |
boolean | getAnimateFirstView() Returns whether the current View should be animated the first time the ViewAnimator is displayed. |
int | getBaseline() Return the offset of the widget's text baseline from the widget's top boundary. |
View | getCurrentView() Returns the View corresponding to the currently displayed child. |
int | getDisplayedChild() Returns the index of the currently displayed child view. |
Animation | getInAnimation() Returns the current animation used to animate a View that enters the screen. |
Animation | getOutAnimation() Returns the current animation used to animate a View that exits the screen. |
void | removeAllViews() Call this method to remove all child views from the ViewGroup. |
void | removeView(View view) Note: do not invoke this method from |
void | removeViewAt(int index) Removes the view at the specified position in the group. |
void | removeViewInLayout(View view) Removes a view during layout. |
void | removeViews(int start, int count) Removes the specified range of views from the group. |
void | removeViewsInLayout(int start, int count) Removes a range of views during layout. |
void | setAnimateFirstView(boolean animate) Indicates whether the current View should be animated the first time the ViewAnimator is displayed. |
void | setDisplayedChild(int whichChild) Sets which child view will be displayed. |
void | setInAnimation(Context context, int resourceID) Specifies the animation used to animate a View that enters the screen. |
void | setInAnimation(Animation inAnimation) Specifies the animation used to animate a View that enters the screen. |
void | setOutAnimation(Animation outAnimation) Specifies the animation used to animate a View that exit the screen. |
void | setOutAnimation(Context context, int resourceID) Specifies the animation used to animate a View that exit the screen. |
void | showNext() Manually shows the next child. |
void | showPrevious() Manually shows the previous child. |
继承方法 | |
|---|---|
android.widget.FrameLayout
| |
android.view.ViewGroup
| |
android.view.View
| |
java.lang.Object
| |
android.view.ViewParent
| |
android.view.ViewManager
| |
android.graphics.drawable.Drawable.Callback
| |
android.view.KeyEvent.Callback
| |
android.view.accessibility.AccessibilityEventSource
| |
XML属性
android:animateFirstView
Defines whether to animate the current View when the ViewAnimation is first displayed.
设定当首次显示ViewAnimation时,是否对当前view呈现动画效果。
完整内容,请查看:http://www.zhdoc.net/android/reference/android/widget/ViewAnimator.html
2452


-- ViewAnimator&spm=1001.2101.3001.11974&articleId=72928109&d=1&t=3&u=dc51e55146564891b902bb8f06e06de4)

被折叠的 条评论
为什么被折叠?



