android 属性动画 介绍
来源:互联网 发布:双十一淘宝销售额2016 编辑:程序博客网 时间:2024/06/16 08:28
先看一个位移动画
propertyName 还会有 scaleX scaleY 等属性值
ObjectAnimator anim = ObjectAnimator.ofFloat(view, "translationY", 500f);anim.setDuration(0);// 正式开始启动执行动画anim.start();
translationY 或者 translationX 沿着垂直或者水平方向移动
第三个参数是不定参数 view将依次移动到指定的位置
/** * Constructs and returns an ObjectAnimator that animates between float values. A single * value implies that that value is the one being animated to. Two values imply a starting * and ending values. More than two values imply a starting value, values to animate through * along the way, and an ending value (these values will be distributed evenly across * the duration of the animation). * * @param target The object whose property is to be animated. This object should * have a public method on it called <code>setName()</code>, where <code>name</code> is * the value of the <code>propertyName</code> parameter. * @param propertyName The name of the property being animated. * @param values A set of values that the animation will animate between over time. * @return An ObjectAnimator object that is set up to animate between the given values. */ public static ObjectAnimator ofFloat(Object target, String propertyName, float... values) {
propertyName 还会有 scaleX scaleY 等属性值
0 0
- android 属性动画 介绍
- Android属性动画基础介绍
- Android属性动画入门介绍
- Android 属性动画(Property Animation)介绍
- Android动画--属性动画
- android动画 -- 属性动画
- Android动画-属性动画
- Android动画【属性动画】
- Android动画--属性动画
- Tween动画属性介绍
- Android-Property_Animation介绍及基本实现(属性动画)
- android的属性动画Property Animation介绍及其使用
- android属性动画(property animation)使用介绍
- android属性动画--布局动画
- Android 动画之属性动画
- Android中的动画,属性动画
- android-属性动画、视图动画
- Android动画之属性动画
- python中list的相关方法
- 1、in与exists之争(10g);2、in与exists之争(11g)
- PHP输出echo、print、print_r、printf、sprintf、var_dump的区别比较
- Android中的MVP,值得你一看
- JS之联动菜单简单实例
- android 属性动画 介绍
- JS高级基础阶段知识总结
- Android通过bindservice方式调用服务的方法
- 基于 LNMP 搭建个人网站的填坑之旅
- 显示的电池容量不对
- 配置java开发环境
- LINUX命令
- 关于Remote Smart控制电脑的HID的问题
- Asp.Net MVC3 简单入门详解过滤器Filter