求 针动画的源码
aide吧
全部回复
仅看楼主
level 6
llawmr 楼主
求 针动画的源码
2014年10月30日 16点10分 1
level 13
。。。。。。。。。。。。。。。。。百度,小尾巴
2014年10月30日 23点10分 2
level 9
不是……针……是帧动画……
2014年10月31日 00点10分 3
level 13
忘记了
2014年10月31日 04点10分 4
level 5
属性[类型] 功能
Duration[long] 属性为动画持续时间 时间以毫秒为单位
fillAfter [boolean] 当设置为true ,该动画转化在动画结束后被应用
fillBefore[boolean] 当设置为true ,该动画转化在动画开始前被应用
interpolator 指定一个动画的插入器 有一些常见的插入器accelerate_decelerate_interpolator加速-减速 动画插入器accelerate_interpolator加速-动画插入器decelerate_interpolator减速- 动画插入器其他的属于特定的动画效果
repeatCount[int] 动画的重复次数
RepeatMode[int] 定义重复的行为 1:重新开始 2:plays backward
startOffset[long] 动画之间的时间间隔,从上次动画停多少时间开始执行下个动画
zAdjustment[int] 定义动画的Z Order的改变 0:保持Z Order不变1:保持在最上层-1:保持在最下层
2014年10月31日 06点10分 5
level 5
frameAnimation = new AnimationDrawable();
for (int i = 0; i < 10; i++) {
int id = getResources().getIdentifier("load" + (i+1), "drawable", this.getContext().getPackageName());
frameAnimation.addFrame(getResources().getDrawable(id), 100);
}
//设置循环播放 false表示循环 true表示不循环,仅播放一次
frameAnimation.setOneShot(false);
2014年10月31日 06点10分 7
教下我可以吗?
2017年05月07日 05点05分
我加你QQ
2017年05月07日 05点05分
@lanyu0828 276970376
2017年05月18日 13点05分
level 5
布局
[xhtml] view plaincopyprint?
<?xml version="1.0" encoding="utf-8"?>
<animation-list xmlns:android="http://schemas.android.com/apk/res/android"
android:oneshot="false">
<item android:drawable="@drawable/load1" android:duration="50" />
<item android:drawable="@drawable/load2" android:duration="50" />
<item android:drawable="@drawable/load3" android:duration="50" />
<item android:drawable="@drawable/load4" android:duration="50" />
<item android:drawable="@drawable/load5" android:duration="50" />
<item android:drawable="@drawable/load6" android:duration="50" />
<item android:drawable="@drawable/load7" android:duration="50" />
<item android:drawable="@drawable/load8" android:duration="50" />
<item android:drawable="@drawable/load9" android:duration="50" />
<item android:drawable="@drawable/load10" android:duration="50" />
</animation-list>
2014年10月31日 06点10分 8
1