android_fram_animation

所属分类:android开发
开发工具:C/C++
文件大小:1559KB
下载次数:17
上传日期:2012-08-06 22:14:16
上 传 者tornadomeet
说明:  Amination的整体使用有2种方法,即Tween Animation和Frame Animation,在博客Android开发历程_8(Tween Animation的2种属性设置方法) 中已经介绍了Tween Animation的使用方法,且讲到了其2种属性设置方式。这一节就来看看Frame Animation的使用。参考资料为Mars老师的资料。   Frame Animation的应用不是很广,它主要是将一张张图片串联起来播放,人眼看上去就感觉在动一样,就是利用这种特性到达动态效果。所以我们必须提前准备各种能组成动画的图片。   使用时需要在res下的drawable文件夹中放入需要动画显示的图片,同时在该文件夹中新建一个xml文件,该xml文件里面一animation-list作为标签,标签里面设置一些item,其资源为该drawable下的图片,然后设置好该图片的持续时间即可。   在这次试验中,我主要是放了5张有关小鸟的图片,其drawable下的xml文件内容如下:
(Use of the Amination the as a whole there are two kinds of methods, Tween Animation, and Frame Animation Tween Animation in the blog Android development course _8 two kinds (of Tween Animation property is set), and talked about two kinds of attributes set up. This section will look at the use of the Frame Animation. Reference data for the Mars teacher. The application of the Frame Animation is not very wide, it is mainly a picture of picture series up to play, the human eye seems to feel moving, is to use this feature to reach the dynamic effects. So we must be prepared in advance can form a picture of the animation. Need to use the drawable file in the res folder into the animated display pictures, create a new xml file in the folder, the xml file inside the animation-list as a label, the label which set some item of its resources for the drawable under the picture, and then set the duration of the picture can be. In this experiment, I put a picture of the five birds under its drawabl)

文件列表:
anim_3\.classpath (364, 2012-08-06)
anim_3\.project (842, 2012-08-06)
anim_3\.settings\org.eclipse.jdt.core.prefs (177, 2012-08-06)
anim_3\AndroidManifest.xml (794, 2012-08-06)
anim_3\bin\AndroidManifest.xml (794, 2012-08-06)
anim_3\bin\anim_3.apk (404014, 2012-08-06)
anim_3\bin\classes\com\example\anim_3\BuildConfig.class (345, 2012-08-06)
anim_3\bin\classes\com\example\anim_3\MainActivity$MyButtonOnClickListener.class (1340, 2012-08-06)
anim_3\bin\classes\com\example\anim_3\MainActivity.class (1628, 2012-08-06)
anim_3\bin\classes\com\example\anim_3\R$attr.class (340, 2012-08-06)
anim_3\bin\classes\com\example\anim_3\R$drawable.class (630, 2012-08-06)
anim_3\bin\classes\com\example\anim_3\R$id.class (486, 2012-08-06)
anim_3\bin\classes\com\example\anim_3\R$layout.class (403, 2012-08-06)
anim_3\bin\classes\com\example\anim_3\R$menu.class (397, 2012-08-06)
anim_3\bin\classes\com\example\anim_3\R$string.class (513, 2012-08-06)
anim_3\bin\classes\com\example\anim_3\R$style.class (395, 2012-08-06)
anim_3\bin\classes\com\example\anim_3\R.class (625, 2012-08-06)
anim_3\bin\classes.dex (319816, 2012-08-06)
anim_3\bin\res\drawable-hdpi\ic_action_search.png (409, 2012-08-06)
anim_3\bin\res\drawable-hdpi\ic_launcher.png (4129, 2012-08-06)
anim_3\bin\res\drawable-ldpi\ic_launcher.png (1756, 2012-08-06)
anim_3\bin\res\drawable-mdpi\ic_action_search.png (311, 2012-08-06)
anim_3\bin\res\drawable-mdpi\ic_launcher.png (2654, 2012-08-06)
anim_3\bin\res\drawable-xhdpi\ic_action_search.png (491, 2012-08-06)
anim_3\bin\res\drawable-xhdpi\ic_launcher.png (5456, 2012-08-06)
anim_3\bin\resources.ap_ (268034, 2012-08-06)
anim_3\gen\com\example\anim_3\BuildConfig.java (160, 2012-08-06)
anim_3\gen\com\example\anim_3\R.java (1630, 2012-08-06)
anim_3\ic_launcher-web.png (37099, 2012-08-06)
anim_3\libs\android-support-v4.jar (337562, 2012-08-06)
anim_3\proguard-project.txt (781, 2012-08-06)
anim_3\project.properties (563, 2012-08-06)
anim_3\res\drawable\anim_list.xml (563, 2012-08-06)
anim_3\res\drawable-hdpi\ic_action_search.png (3120, 2012-08-06)
anim_3\res\drawable-hdpi\ic_launcher.png (3014, 2012-08-06)
anim_3\res\drawable-ldpi\ic_launcher.png (1504, 2012-08-06)
anim_3\res\drawable-mdpi\frame1.jpg (53819, 2012-08-06)
anim_3\res\drawable-mdpi\frame2.jpg (55093, 2012-08-06)
anim_3\res\drawable-mdpi\frame3.jpg (38594, 2012-08-06)
anim_3\res\drawable-mdpi\frame4.jpg (43503, 2012-08-06)
... ...

近期下载者

相关文件


收藏者