AnimationUtils
来源:互联网 发布:js 模块化编程 入门 编辑:程序博客网 时间:2024/05/21 08:59
AnimationUtils(示例,出错代码)
android.view.animation
类 AnimationUtils
java.lang.Object android.view.animation.AnimationUtils
public class AnimationUtils
- extends Object
Defines common utilities for working with animations.
AnimationUtils()
static long
currentAnimationTimeMillis()
Returns the current animation time in milliseconds.
s
tatic Animation
loadAnimation(Context context, int id)Loads an Animation object from a resource
static Interpolator
loadInterpolator(Context context, int id)
Loads an Interpolator object from a resource
static LayoutAnimationController
loadLayoutAnimation(Context context, int id)
static Animation
makeInAnimation(Context c, boolean fromLeft)
Make an animation for objects becoming visible.
static Animation
makeInChildBottomAnimation(Context c)
Make an animation for objects becoming visible.
static Animation
makeOutAnimation(Context c, boolean toRight)
Make an animation for objects becoming invisible.
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
AnimationUtils
public AnimationUtils()
currentAnimationTimeMillis
public static long currentAnimationTimeMillis()
- Returns the current animation time in milliseconds. This time should be used when invoking Animation.setStartTime(long). Refer to SystemClock for more information about the different available clocks. The clock used by this method is not the "wall" clock (it is not System.currentTimeMillis()).
- 返回:
- the current animation time in milliseconds
- 另请参见:
- SystemClock
loadAnimation
public static Animation loadAnimation(Context context, int id) throws Resources.NotFoundException
- Loads an Animation object from a resource
- 参数:
context
- Application context used to access resourcesid
- The resource id of the animation to load- 返回:
- The animation object reference by the specified id
- 抛出:
Resources.NotFoundException
- when the animation cannot be loaded
loadLayoutAnimation
public static LayoutAnimationController loadLayoutAnimation(Context context, int id) throws Resources.NotFoundException
- 抛出:
Resources.NotFoundException
makeInAnimation
public static Animation makeInAnimation(Context c, boolean fromLeft)
- Make an animation for objects becoming visible. Uses a slide and fade effect.
- 参数:
c
- Context for loading resourcesfromLeft
- is the object to be animated coming from the left- 返回:
- The new animation
makeOutAnimation
public static Animation makeOutAnimation(Context c, boolean toRight)
- Make an animation for objects becoming invisible. Uses a slide and fade effect.
- 参数:
c
- Context for loading resourcestoRight
- is the object to be animated exiting to the right- 返回:
- The new animation
makeInChildBottomAnimation
public static Animation makeInChildBottomAnimation(Context c)
- Make an animation for objects becoming visible. Uses a slide up and fade effect.
- 参数:
c
- Context for loading resources- 返回:
- The new animation
loadInterpolator
public static Interpolator loadInterpolator(Context context, int id) throws Resources.NotFoundException
- Loads an Interpolator object from a resource
- 参数:
context
- Application context used to access resourcesid
- The resource id of the animation to load- 返回:
- The animation object reference by the specified id
- 抛出:
Resources.NotFoundException
0 0
- AnimationUtils
- AnimationUtils
- AnimationUtils学习
- AnimationUtils认识
- 使用AnimationUtils载入动画
- AnimationUtils.loadAnimation animation-list
- 改造AnimationUtils,改为RotateAnimation
- AnimationUtils类:动画工具类
- AnimationUtils类:动画工具类
- 【Android】Android动画入门Animation 、AnimationUtils
- 【Android】Android动画入门Animation 、AnimationUtils
- 【Android】Android动画入门Animation 、AnimationUtils
- android2.3使用AnimationUtils.loadAnimation()加载动画出现异常
- Android 移动跟渐变动画代码实现(AnimationUtils)
- 关于ueditor报错问题
- 深度学习概述:从感知机到深度网络
- Java 三大特性 —— 多态
- VS2013的OSG开发环境配置
- AnimationSet
- AnimationUtils
- 机器学习算法汇总:人工神经网络、深度学习及其它
- Express + Node.js 实现拦截器
- 微信公众平台从入门到精通二
- iOS文件写入读取
- spring MVC配置详解
- ListView的使用
- 迭代----- Maximum Depth of Binary Tree
- JSTL中EL表达式无法直接取size的处理