关于动画的一些问题,请大牛回答 我做了一个帧动画,点击一个按钮以后会展示该动画,现在的问题是只有第一次点击的时候会出现该动画,再点就没有反应了,请问这是怎么回事? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 看下我的代码?xml version="1.0" encoding="utf-8"?><animation-list xmlns:android="http://schemas.android.com/apk/res/android" android:oneshot="true"> <item android:drawable="@drawable/left" android:duration="100"/> <item android:drawable="@drawable/right" android:duration="100"/> <item android:drawable="@drawable/left" android:duration="100"/> <item android:drawable="@drawable/right" android:duration="100"/></animation-list>public void onClick(View view){ ImageView imageView = (ImageView)findViewById(R.id.imageView); imageView.setBackgroundResource(R.drawable.animlist); AnimationDrawable animationDrawable = (AnimationDrawable)imageView.getBackground(); animationDrawable.start(); }imageView.setBackgroundResource(R.drawable.animlist);这样算不算你说的重新加载下动画? 感觉android好多诡异的东西啊,这几天尝试动画制作,遇到N多问题 用之前没clear上次的动画?? centos下能不能使用android真机进行调试? android出现错误,求指导!! 如果启动解压下来的apk程序 android 手工创建布局用到的多吗? 高手请进,做手机视频监控的请进 关于Android内置的搜索框 drawText的换行问题... andengine 如何让两个精灵在AutoParallaxBackground跑起来 谁知道安卓浮窗里的文字怎么改变啊?浮窗时钟原理 请问两种开启子线程的方法有何区别? listview动态加载网络图片 滑动时图片变换 关于Android的getDrawable加载资源的问题
?xml version="1.0" encoding="utf-8"?><animation-list xmlns:android="http://schemas.android.com/apk/res/android" android:oneshot="true">
<item android:drawable="@drawable/left" android:duration="100"/>
<item android:drawable="@drawable/right" android:duration="100"/>
<item android:drawable="@drawable/left" android:duration="100"/>
<item android:drawable="@drawable/right" android:duration="100"/></animation-list>
public void onClick(View view){
ImageView imageView = (ImageView)findViewById(R.id.imageView);
imageView.setBackgroundResource(R.drawable.animlist);
AnimationDrawable animationDrawable = (AnimationDrawable)imageView.getBackground();
animationDrawable.start(); }imageView.setBackgroundResource(R.drawable.animlist);
这样算不算你说的重新加载下动画?