[Android] animated-rotate简单的转菊花...
2015-08-06 14:32
886 查看
转:http://blog.csdn.net/sodino/article/details/11390655
一张图片以中心为圆心,转圈..
原本使用的是animation-list,使用了12张图片:
现使用animated-rotate,精简了一下:
一张图片以中心为圆心,转圈..
原本使用的是animation-list,使用了12张图片:
<?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/loading_0" android:duration="100"/> <item android:drawable="@drawable/loading_1" android:duration="100"/> <item android:drawable="@drawable/loading_2" android:duration="100"/> <item android:drawable="@drawable/loading_3" android:duration="100"/> <item android:drawable="@drawable/loading_4" android:duration="100"/> <item android:drawable="@drawable/loading_5" android:duration="100"/> <item android:drawable="@drawable/loading_6" android:duration="100"/> <item android:drawable="@drawable/loading_7" android:duration="100"/> <item android:drawable="@drawable/loading_8" android:duration="100"/> <item android:drawable="@drawable/loading_9" android:duration="100"/> <item android:drawable="@drawable/loading_10" android:duration="100"/> <item android:drawable="@drawable/loading_11" android:duration="100"/> </animation-list>
现使用animated-rotate,精简了一下:
<?xml version="1.0" encoding="utf-8"?> <animated-rotate xmlns:android="http://schemas.android.com/apk/res/android" android:drawable="@drawable/loading_0" android:pivotX="50%" android:pivotY="50%"/>
相关文章推荐
- Android开发之图形图像与动画(二)Animation实现图像的渐变/缩放/位移/旋转
- Android开发重写Animation实现下拉图片后弹射回去效果示例
- Android 应用的动画实践--View Animation篇
- IOS中常用动画方法总结
- Qt-4.6动画Animation快速入门三字决
- 自定义dialog--symbian
- 乔布斯在2005年斯坦福大学毕业典礼上的演讲:我生命中的三个故事
- Android 移动动画- TranslateAnimation
- 通天塔
- (译)Cocos2d_for_iPhone_1_Game_Development_Cookbook:1.12使用层来交换调色板
- Blender 3D渲染工具
- 一些Flex开源项目的整理
- Android中通过按键旋转屏幕
- 定制你自己的桌面--- launcher
- 修改系统默认动画
- 视图弹出后放大又缩小的动画实现、类似于alertView效果
- Activity之生命周期
- UISearchBar 和 UISearchDisplayController的使用
- iOS学习笔记之QuartzCore框架