Android7.0中文文档(API)-- ViewAnimator
来源:互联网 发布:linux jdk1.7下载 编辑:程序博客网 时间:2024/06/05 10:18
完整内容,请查看:http://www.zhdoc.net/android/reference/android/widget/ViewAnimator.html
ViewAnimator
public class ViewAnimator
extendsFrameLayout
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.
返回当前视图在ViewAnimator第一次显示时,是否进行动画。
int
getBaseline()
Return the offset of the widget's text baseline from the widget's top boundary.
返回widget文本基线的偏移,其从widget的顶部边界开始。
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对象,其对进入屏幕的视图进行动画。
Animation
getOutAnimation()
Returns the current animation used to animate a View that exits the screen.
返回当前Animation对象,其对退出屏幕的视图进行动画。
void
removeAllViews()
Call this method to remove all child views from the ViewGroup.
调用此方法,从ViewGroup中移除所有的子视图。
void
removeView(View view)
Note: do not invoke this method from draw(android.graphics.Canvas)
,onDraw(android.graphics.Canvas)
,dispatchDraw(android.graphics.Canvas)
or any related method.
注意:请勿从draw(android.graphics.Canvas)
,onDraw(android.graphics.Canvas)
,dispatchDraw(android.graphics.Canvas)
或任何相关的方法,调用此方法。
void
removeViewAt(int index)
Removes the view at the specified position in the group.
移除ViewGroup中指定索引位置的视图。
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.
设置当前视图在ViewAnimator第一次显示时,是否进行动画。
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.
设置Animation对象,其对进入屏幕的视图进行动画。
void
setInAnimation(Animation inAnimation)
Specifies the animation used to animate a View that enters the screen.
设置Animation对象,其对进入屏幕的视图进行动画。
void
setOutAnimation(Animation outAnimation)
Specifies the animation used to animate a View that exit the screen.
设置Animation对象,其对退出屏幕的视图进行动画。
void
setOutAnimation(Context context, int resourceID)
Specifies the animation used to animate a View that exit the screen.
设置Animation对象,其对退出屏幕的视图进行动画。
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
- Android7.0中文文档(API)-- ViewAnimator
- Android7.0中文文档(API)--- FrameLayout
- Android7.0中文文档(API)--- DatePicker
- Android7.0中文文档(API) --- MediaController
- Android7.0中文文档(API)--- TabHost
- Android7.0中文文档(API) -- TimePicker
- Android7.0中文文档(API)--- AbsoluteLayout
- Android7.0中文文档(API) -- Switch
- Android7.0中文文档(API) --- ToggleButton
- Android7.0中文文档(API) --- RadioButton
- Android7.0中文文档(API) --- CheckedTextView
- Android7.0中文文档(API) -- ScrollView
- Android7.0中文文档(API)-- DigitalClock
- Android7.0中文文档(API)-- TextClock
- Android7.0中文文档(API)---Chronometer
- Android7.0中文文档(API)--- AdapterView
- Android7.0中文文档(API)--- AdapterViewAnimator
- Android7.0中文文档(API)--- DialerFilter
- 【剑指offer-解题系列(52)】构建乘积数组
- InvalidDataAccessApiUsageException:Write operations are not allowed in read-only mode (FlushMode.NEV
- Excel VBA高效办公应用-第二章-Excel VBA编辑基础-Part1(VBA关键字)
- Spring源码之XML解析
- python数据迁移--未完
- Android7.0中文文档(API)-- ViewAnimator
- Codeforces 814C An impassioned circulation of affection【Dp】
- bzoj 4802: 欧拉函数 大整数分解
- QT学习 常见操作记录
- JAVA发送http get/post请求,调用http接口、方法
- 微信小程序 车轮之 滑动删除
- Android中Okhttp的使用(一)
- 浏览器的重绘和回流
- selenium自动化测试工具开发python爬虫-动态加载页面数据获取