文件名称:android_animation

  • 所属分类:
  • android开发
  • 资源属性:
  • [Java] [源码]
  • 上传时间:
  • 2012-11-26
  • 文件大小:
  • 1.55mb
  • 下载次数:
  • 0次
  • 提 供 者:
  • wu***
  • 相关连接:
  • 下载说明:
  • 别用迅雷下载,失败请重下,重下不扣分!

介绍说明--下载内容均来自于网络,请自行研究使用

在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

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

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度更多...
  • 请直接用浏览器下载本站内容,不要使用迅雷之类的下载软件,用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*主  题:
*内  容:
*验 证 码:

源码中国 www.ymcn.org