使android:fillAfter="true"在xml中起作用
2016-03-02 16:36
387 查看
网上很多人都说android:fillAfter=”true”这一属性在xml中设置使动画保持在播放的最后一帧不起作用,只能通过java代码来实现,其实这是一种误导。主要是在加这一属性的时候必须加在标签这里才起作用,代码如下:
<?xml version="1.0" encoding="utf-8"?> <set xmlns:android="http://schemas.android.com/apk/res/android" android:fillEnabled="true" android:fillAfter="true"> <translate android:interpolator="@android:anim/cycle_interpolator" android:fromXDelta="0" android:toXDelta="200" android:fromYDelta="0" android:toYDelta="-50" android:duration="10000" > </translate> </set>
相关文章推荐
- Poj 2299 Ultra-QuickSort【逆序数】
- UE3 Animation Compression Technical Guide
- UE3 Animation Compression List
- UE3 Animation Compression Algorithms
- UE3 Animation Compression
- request对象的方法
- missing ios distribution signing identity xxx, xcode can request one for you
- iOS开发小记:iOS富文本框架DTCoreText在UITableView上的使用
- 使用 UICollectionView 实现日历签到功能
- Failed to find the required library mclmcrrt8_5.dll on java.library.path 解决方法
- iOS之UILabel的基本用法
- iPhone/iPad/Android UI尺寸规范
- ZOJ-3601-Unrequited Love【9th浙江省赛】【模拟】【STL】
- BIT2014级软件学院程序设计-15 Ultra-QuickSort
- 71.Which arithmetic operations can be performed on a column by using a SQL function that is built in
- UITableable代理执行的顺序
- 给系统的UITabbarViewController 的tabBarItem 添加图片的问题
- iOS(学习) UITableView
- SAP BW提供的一些记录Query/process chain/DTP/IP运行及加载情况的InfoCube
- question_009-JAVA之对List的子类特点???