2012年12月7日

android Tween Animation四种动画

摘要: AlphaAnimation 控制渐变透明的动画效果 1.android: fromAlpha 动画起始时的透明度 2.android: toAlpha 动画结束时的透明度 ScaleAnimation 控制尺寸伸缩的动画效果 1.android:fromXScale 动画起始时x坐标的伸缩尺寸 2.android:toXScale 动画结束时X坐标的伸缩尺寸 3.android:fromYScale 动画起始时Y坐标的伸缩尺寸 4.android:toYScale 动画结束时Y坐标的伸缩尺寸 说明: 以上四个属性的设置值为float 0.0 表示收缩到没有,1.0 表示大小为默... 阅读全文

posted @ 2012-12-07 14:54 南瓜饼 阅读(1174) 评论(0) 推荐(0) 编辑

android动画 对fillBefore 和 fillAfter的理解

摘要: fillBefore是指动画结束时画面停留在第一帧,fillAfter是指动画结束是画面停留在最后一帧。这2个参数不能在</alpha>,</scale>,</translate>,</rotate>中设置没有效果,必须</set>中设置才可以 例如:<?xml version="1.0" encoding="utf-8"?><set xmlns:android="http://schemas.android.com/apk/res/android" and 阅读全文

posted @ 2012-12-07 13:41 南瓜饼 阅读(465) 评论(0) 推荐(0) 编辑

Android用Animation-list实现逐帧动画

摘要: 先看看效果图下面是2个动画的xml文件animation1.xml<?xml version="1.0" encoding="utf-8"?><!-- 根标签为animation-list,其中oneshot代表着是否只展示一遍,设置为false会不停的循环播放动画 根标签下,通过item标签对动画中的每一个图片进行声明 android:duration 表示展示所用的该图片的时间长度--><animation-list xmlns:android="http://schemas.android.com/apk/r 阅读全文

posted @ 2012-12-07 11:17 南瓜饼 阅读(3442) 评论(4) 推荐(1) 编辑

导航