Animation _aAnimation =AnimationUtils.loadAnimation(this,
R.anim.push_left_in);
_aAnimation.setStartTime(1000);
_aAnimation.setDuration(1000);
currentrow.setAnimation(_aAnimation);
_aAnimation.start();
只开始执行一次
以后就不好使了!???
解决方案 »
- Google Maps Android API v2官网样例com.example.mapdemo找不到R.java
- android app操作离线html5代码
- 选中ListView中一个item后,怎么取出这个item在数据库中的id?
- 蓝牙长时间工作出现错误 Nolonger want com.android.bluetooth
- Android.R的问题
- Activity刷新不了,求助!!!!!!!!!!!
- 多个activity传值问题
- Android动态截图传输问题
- 跪求类似小米的TimerPicker
- qq登陆 100044问题
- 图片无法显示,请教
- apk放手机上的时候解析错误为什么?急!急!急!
_aAnimation.setStartTime(1000);
_aAnimation.setDuration(1000);
currentrow.setAnimation(_aAnimation);
这三句 试试
设置重复次数,或者重复模式
public void setRepeatCount (int repeatCount)
Since: API Level 1 Sets how many times the animation should be repeated. If the repeat count is 0, the animation is never repeated. If the repeat count is greater than 0 or INFINITE, the repeat mode will be taken into account. The repeat count is 0 by default.Related XML Attributes
android:repeatCount
Parameters
repeatCount the number of times the animation should be repeated public void setRepeatMode (int repeatMode)
Since: API Level 1 Defines what this animation should do when it reaches the end. This setting is applied only when the repeat count is either greater than 0 or INFINITE. Defaults to RESTART. Related XML Attributes
android:repeatMode
Parameters
repeatMode RESTART or REVERSE