ObjectAnimator中View.Y和View.TRANSLATION_Y的区别
来源:互联网 发布:mysql 复合索引 编辑:程序博客网 时间:2024/06/06 08:50
ObjectAnimator animator=ObjectAnimator.ofFloat(textView,View.Y,0,100);
ObjectAnimator animator=ObjectAnimator.ofFloat(textView,View.TRANSLATION_Y,0,100);
这两者的区别在于,Y是绝对位置,TRANSLATION_Y是相对位置,跟它定义在布局中的位置有关。
0 0
- ObjectAnimator中View.Y和View.TRANSLATION_Y的区别
- ObjectAnimator中View.Y和View.TRANSLATION_Y的区别
- android中View的scrollBy(int x,int y)和scrollTo(int x,int y)的区别
- Android中view和surfaceview的区别
- Android中SurfaceView和View的区别
- Android中SurfaceView和View的区别
- Android中view和surfaceview的区别
- Android中view和surfaceview的区别
- Android中view和viewGroup的区别
- Android开发中View.VISIBLE、View.INVISIBLE和View.GONE之间的区别
- view和materialized view的区别
- View.INVISIBLE和View.GONE的区别
- view.getX和view.getTranslationX的区别
- View.INVISIBLE和View.GONE的区别
- 获取view的y坐标
- SurfaceView 和 View的区别
- SurfaceView 和 View的区别
- SurfaceView和View的区别
- 写文章需要的一些信息检索
- 利用htmlparser解析网页的标题、keywords和Description
- struts2 文档的一处错误?
- SparseArrays源码分析
- AsyncTask源码分析
- ObjectAnimator中View.Y和View.TRANSLATION_Y的区别
- 配置Log4j(很详细)
- Android翻页效果原理实现之曲线的实现
- android事件处理流程
- char 转wchar_t 和wchar_t转char
- Linux流量控制指南 (Traffic control HOWTO)
- 解决 复制好VMware里的centos后,无法上网
- C++的cout语句格式控制输出
- 创建基于arm的debian文件系统