android_animation

所属分类:android开发
开发工具:Java
文件大小:1583KB
下载次数:26
上传日期:2012-08-06 20:05:58
上 传 者tornadomeet
说明:  在Andriod开发中,Animation是用来给控件制作效果的。大多数的控件都可以用这个类,这个类包含了4种基本动作,分别为移动,旋转,淡入淡出,缩放。在使用Animation时,可以在.java文件中用java代码对其进行设置,这样的优点是可以方便调试程序效果;另外一种方法就是在xml中对控件的属性做设置,好处是代码的重用性比较高,缺点是不方便调试。本节中就简单介绍下这2种方法的使用流程。参考资料为mars老师的教程。 一、在java代码中使用Animation.   在java代码中使用Animation主要分为下面4个步骤。   创建一个AnimationSet类,AnimationSet类是一个Animation集合,里面可以许多Animation,且在AnimationSet中设置的属性适用于里面的所有Animation。   根据我们需要的动态效果创建一个Animation类,主要有4个这样的类,分别为AlphaAnimation,ScaleAnimation,RotateAnimation,TranslateAnimation,分别对应着一种动画效果。  
(In the Andriod the development, Animation effect is used to control production. Most controls can use this class, this class contains four kinds of basic movements, move, rotate, fade in fade out, zoom. The use of Animation in java file using java code to set it up, this advantage is that you can easily debug the program effect Another way is to control the properties in xml settings, the benefits of code reuse is relatively high, the disadvantage is not convenient debugging. In this section a brief introduction of these two kinds of methods use process. Reference mars teacher tutorial. Animation. In java code in java code using the Animation is divided into the following four steps. Create a AnimationSet class AnimationSet class Animation collection, which can be many Animation property set in AnimationSet, apply to the inside of all of Animation. Dynamic effects we need to create an Animation class, 4 class, for AlphaAnimation ScaleAnimation the, RotateAnimation TranslateAnimation, )

文件列表:
Andriod开发历程_8(Animation的2种属性设置方法).docx (91114, 2012-08-06)
anim_1 (0, 2012-08-06)
anim_1\.classpath (364, 2012-08-06)
anim_1\.project (842, 2012-08-06)
anim_1\.settings (0, 2012-08-06)
anim_1\.settings\org.eclipse.jdt.core.prefs (177, 2012-08-06)
anim_1\AndroidManifest.xml (794, 2012-08-06)
anim_1\assets (0, 2012-08-06)
anim_1\bin (0, 2012-08-06)
anim_1\bin\AndroidManifest.xml (794, 2012-08-06)
anim_1\bin\anim_1.apk (160526, 2012-08-06)
anim_1\bin\classes (0, 2012-08-06)
anim_1\bin\classes\com (0, 2012-08-06)
anim_1\bin\classes\com\example (0, 2012-08-06)
anim_1\bin\classes\com\example\anim_1 (0, 2012-08-06)
anim_1\bin\classes\com\example\anim_1\BuildConfig.class (345, 2012-08-06)
anim_1\bin\classes\com\example\anim_1\MainActivity$AlphaButtonListener.class (1478, 2012-08-06)
anim_1\bin\classes\com\example\anim_1\MainActivity$RotateButtonListener.class (1519, 2012-08-06)
anim_1\bin\classes\com\example\anim_1\MainActivity$ScaleButtonListener.class (1509, 2012-08-06)
anim_1\bin\classes\com\example\anim_1\MainActivity$TranslateButtonListener.class (1538, 2012-08-06)
anim_1\bin\classes\com\example\anim_1\MainActivity.class (2433, 2012-08-06)
anim_1\bin\classes\com\example\anim_1\R$attr.class (340, 2012-08-06)
anim_1\bin\classes\com\example\anim_1\R$drawable.class (475, 2012-08-06)
anim_1\bin\classes\com\example\anim_1\R$id.class (577, 2012-08-06)
anim_1\bin\classes\com\example\anim_1\R$layout.class (403, 2012-08-06)
anim_1\bin\classes\com\example\anim_1\R$menu.class (397, 2012-08-06)
anim_1\bin\classes\com\example\anim_1\R$string.class (634, 2012-08-06)
anim_1\bin\classes\com\example\anim_1\R$style.class (395, 2012-08-06)
anim_1\bin\classes\com\example\anim_1\R.class (625, 2012-08-06)
anim_1\bin\classes.dex (321560, 2012-08-06)
anim_1\bin\jarlist.cache (119, 2012-08-06)
anim_1\bin\res (0, 2012-08-06)
anim_1\bin\res\drawable-hdpi (0, 2012-08-06)
anim_1\bin\res\drawable-hdpi\ic_action_search.png (409, 2012-08-06)
anim_1\bin\res\drawable-hdpi\ic_launcher.png (4129, 2012-08-06)
anim_1\bin\res\drawable-ldpi (0, 2012-08-06)
anim_1\bin\res\drawable-ldpi\ic_launcher.png (1756, 2012-08-06)
anim_1\bin\res\drawable-mdpi (0, 2012-08-06)
anim_1\bin\res\drawable-mdpi\ic_action_search.png (311, 2012-08-06)
anim_1\bin\res\drawable-mdpi\ic_launcher.png (2654, 2012-08-06)
... ...

近期下载者

相关文件


收藏者