基础篇–android动画效果(一)
记录4种动画的具体使用
此篇文章包括alpha、scale、translate、rotate在xml中和代码中的使用
渐变动画
alpha
scale
画面转换动画
translate
rotate
scale缩放
xml使用
<scale xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="2000"//动画的持续时间
android:fromXScale="0.5"//控件起始的缩放,当前为0.5倍,1.0代表正常大小
android:fromYScale="0.5"
android:interpolator="@android:anim/decelerate_interpolator"//加速减速插