Android动画之图片动画(四)
来源:互联网 发布:易语言qq抢红包源码 编辑:程序博客网 时间:2024/06/09 22:40
现在使ImageView中的图片可以动起来
1.在drawable-mdpi文件夹下加入图片,并加入一个xml文件,文件如下
- <?xml version="1.0" encoding="utf-8"?>
- <animation-list xmlns:android="http://schemas.android.com/apk/res/android" >
- <item android:drawable="@drawable/a" android:duration="500"/>
- <item android:drawable="@drawable/b" android:duration="500"/>
- <item android:drawable="@drawable/c" android:duration="500"/>
- <item android:drawable="@drawable/d" android:duration="500"/>
- </animation-list>
2.代码如下
- iv.setBackgroundResource(R.drawable.anim);
- AnimationDrawable an=(AnimationDrawable)iv.getBackground();
- an.start();
- Android动画之图片动画(四)
- Android动画之图片动画(四)
- Android动画之图片动画(四)
- Android动画之图片动画(四)
- Android动画之图片动画
- Android 动画之属性动画(四)
- Android动画之属性动画(四)
- Android动画之图片循环动画
- Android动画之图片吸入动画详解
- Android动画之旅(四)----小球拟合动画
- Android动画学习(四)之属性动画学习
- Android动画之Property Animation(四)
- Android四种动画
- Android 动画 ValueAnimator(四)
- Android四种动画
- Android动画(四):RevealEffect
- 【Android动画】之Frame动画
- 【Android动画】之Frame动画
- jquery datagril
- android 画图之setXfermode
- 【mysql】linux下,mysql的四种启动方式
- .a文件中监测是否使用了UDID
- JAVA RMI 实例
- Android动画之图片动画(四)
- 总结一些Android好用的开源库
- topic model 预处理步骤
- 工作效率低下?业内人士建议你切勿追求完美
- javascript函数的表示形式
- equals比较两个对象的内容
- Carberp木马研究资料
- actionscript 3.0帮助文档主要的作用是什么
- Linux提权后获取敏感信息的方法与途径