animation
文章平均质量分 79
tianyu214
这个作者很懒,什么都没留下…
展开
-
Animation RotateAnimation详解
fromDegress为0,则从view本来的位置绕着旋转点,旋转toDegress度,若fromDegress为90, toDegress为180,则view瞬间跳转到以旋转90度的位置,然后再顺时针旋转90度。 1.RotateAnimation(float fromDegrees, float toDegrees) 默认的旋转点为view的左上角 X轴顺时...原创 2013-08-01 17:50:07 · 237 阅读 · 0 评论 -
android之Animation<1>
public class MainActivity extends Activity { private ImageView image; private Button alpha_btn, rotate_btn, scale_btn, translate_btn; @Override protected void onCreate(Bundle savedInsta...原创 2013-08-01 21:58:57 · 57 阅读 · 0 评论 -
Android之Animation<2>
Animations的第二种使用方法 1.在res文件夹下新建一个anim的 文件夹; 2.创建xml文件,首先加入set便签,改标签如下: <set xmlns:android="http://schemas.android.com/apk/res/android" android:interpolator="@android:anim/accelerate_int...原创 2013-08-02 11:20:20 · 69 阅读 · 0 评论 -
Android之Animation<3>
前面的两篇博文一个是直接在代码中new出alpha、rotate、scale、translate对象,一个是在xml文件的set标签中指定,如果在set标签下指定对个Animation对象,就会出现叠加的效果。 <?xml version="1.0" encoding="utf-8"?> <set xmlns:android="http://sche...原创 2013-08-03 17:58:16 · 91 阅读 · 0 评论 -
Frame By Frame Animations
在drawable文件夹下新建一个animation-list的xml文件: <?xml version="1.0" encoding="utf-8"?> <animation-list xmlns:android="http://schemas.android.com/apk/res/android" android:oneshot="false"&g原创 2013-08-03 19:51:48 · 103 阅读 · 0 评论