文件名称:android_animation
介绍说明--下载内容均来自于网络,请自行研究使用
在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,
一、在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
anim_1
......\.classpath
......\.project
......\.settings
......\.........\org.eclipse.jdt.core.prefs
......\AndroidManifest.xml
......\assets
......\bin
......\...\AndroidManifest.xml
......\...\anim_1.apk
......\...\classes
......\...\.......\com
......\...\.......\...\example
......\...\.......\...\.......\anim_1
......\...\.......\...\.......\......\BuildConfig.class
......\...\.......\...\.......\......\MainActivity$AlphaButtonListener.class
......\...\.......\...\.......\......\MainActivity$RotateButtonListener.class
......\...\.......\...\.......\......\MainActivity$ScaleButtonListener.class
......\...\.......\...\.......\......\MainActivity$TranslateButtonListener.class
......\...\.......\...\.......\......\MainActivity.class
......\...\.......\...\.......\......\R$attr.class
......\...\.......\...\.......\......\R$drawable.class
......\...\.......\...\.......\......\R$id.class
......\...\.......\...\.......\......\R$layout.class
......\...\.......\...\.......\......\R$menu.class
......\...\.......\...\.......\......\R$string.class
......\...\.......\...\.......\......\R$style.class
......\...\.......\...\.......\......\R.class
......\...\classes.dex
......\...\jarlist.cache
......\...\res
......\...\...\drawable-hdpi
......\...\...\.............\ic_action_search.png
......\...\...\.............\ic_launcher.png
......\...\...\drawable-ldpi
......\...\...\.............\ic_launcher.png
......\...\...\drawable-mdpi
......\...\...\.............\ic_action_search.png
......\...\...\.............\ic_launcher.png
......\...\...\drawable-xhdpi
......\...\...\..............\ic_action_search.png
......\...\...\..............\ic_launcher.png
......\...\resources.ap_
......\gen
......\...\com
......\...\...\example
......\...\...\.......\anim_1
......\...\...\.......\......\BuildConfig.java
......\...\...\.......\......\R.java
......\ic_launcher-web.png
......\libs
......\....\android-support-v4.jar
......\proguard-project.txt
......\project.properties
......\res
......\...\drawable-hdpi
......\...\.............\girl.jpg
......\...\.............\ic_action_search.png
......\...\.............\ic_launcher.png
......\...\drawable-ldpi
......\...\.............\ic_launcher.png
......\...\drawable-mdpi
......\...\.............\ic_action_search.png
......\...\.............\ic_launcher.png
......\...\drawable-xhdpi
......\...\..............\ic_action_search.png
......\...\..............\ic_launcher.png
......\...\layout
......\...\......\activity_main.xml
......\...\menu
......\...\....\activity_main.xml
......\...\values
......\...\......\strings.xml
......\...\......\styles.xml
......\...\values-v11
......\...\..........\styles.xml
......\...\values-v14
......\...\..........\styles.xml
......\src
......\...\com
......\...\...\example
......\...\...\.......\anim_1
......\...\...\.......\......\MainActivity.java
anim_2
......\.classpath
......\.project
......\.settings
......\.........\org.eclipse.jdt.core.prefs
......\AndroidManifest.xml
......\assets
......\bin
......\...\AndroidManifest.xml
......\...\anim_2.apk
......\...\classes
......\...\.......\com
......\...\.......\...\example
......\...\.......\...\.......\anim_2
......\...\.......\...\.......\......\BuildConfig.class
......\...\.......\...\.......\......\MainActivity$AlphaButtonListener.class
anim_1
......\.classpath
......\.project
......\.settings
......\.........\org.eclipse.jdt.core.prefs
......\AndroidManifest.xml
......\assets
......\bin
......\...\AndroidManifest.xml
......\...\anim_1.apk
......\...\classes
......\...\.......\com
......\...\.......\...\example
......\...\.......\...\.......\anim_1
......\...\.......\...\.......\......\BuildConfig.class
......\...\.......\...\.......\......\MainActivity$AlphaButtonListener.class
......\...\.......\...\.......\......\MainActivity$RotateButtonListener.class
......\...\.......\...\.......\......\MainActivity$ScaleButtonListener.class
......\...\.......\...\.......\......\MainActivity$TranslateButtonListener.class
......\...\.......\...\.......\......\MainActivity.class
......\...\.......\...\.......\......\R$attr.class
......\...\.......\...\.......\......\R$drawable.class
......\...\.......\...\.......\......\R$id.class
......\...\.......\...\.......\......\R$layout.class
......\...\.......\...\.......\......\R$menu.class
......\...\.......\...\.......\......\R$string.class
......\...\.......\...\.......\......\R$style.class
......\...\.......\...\.......\......\R.class
......\...\classes.dex
......\...\jarlist.cache
......\...\res
......\...\...\drawable-hdpi
......\...\...\.............\ic_action_search.png
......\...\...\.............\ic_launcher.png
......\...\...\drawable-ldpi
......\...\...\.............\ic_launcher.png
......\...\...\drawable-mdpi
......\...\...\.............\ic_action_search.png
......\...\...\.............\ic_launcher.png
......\...\...\drawable-xhdpi
......\...\...\..............\ic_action_search.png
......\...\...\..............\ic_launcher.png
......\...\resources.ap_
......\gen
......\...\com
......\...\...\example
......\...\...\.......\anim_1
......\...\...\.......\......\BuildConfig.java
......\...\...\.......\......\R.java
......\ic_launcher-web.png
......\libs
......\....\android-support-v4.jar
......\proguard-project.txt
......\project.properties
......\res
......\...\drawable-hdpi
......\...\.............\girl.jpg
......\...\.............\ic_action_search.png
......\...\.............\ic_launcher.png
......\...\drawable-ldpi
......\...\.............\ic_launcher.png
......\...\drawable-mdpi
......\...\.............\ic_action_search.png
......\...\.............\ic_launcher.png
......\...\drawable-xhdpi
......\...\..............\ic_action_search.png
......\...\..............\ic_launcher.png
......\...\layout
......\...\......\activity_main.xml
......\...\menu
......\...\....\activity_main.xml
......\...\values
......\...\......\strings.xml
......\...\......\styles.xml
......\...\values-v11
......\...\..........\styles.xml
......\...\values-v14
......\...\..........\styles.xml
......\src
......\...\com
......\...\...\example
......\...\...\.......\anim_1
......\...\...\.......\......\MainActivity.java
anim_2
......\.classpath
......\.project
......\.settings
......\.........\org.eclipse.jdt.core.prefs
......\AndroidManifest.xml
......\assets
......\bin
......\...\AndroidManifest.xml
......\...\anim_2.apk
......\...\classes
......\...\.......\com
......\...\.......\...\example
......\...\.......\...\.......\anim_2
......\...\.......\...\.......\......\BuildConfig.class
......\...\.......\...\.......\......\MainActivity$AlphaButtonListener.class