在Android项目的日常开发中,很难免的会用到动画。Android的动画体系分为传统动画,传统动画中又分为两大类,一类是补间动画(Tweened Animation)另一类帧动画(Frame Animation),Android3.0 之后又出现现代动画叫属性动画。
这里用个飞机起飞例子在做个demo!
横屏
竖屏
上效果图:飞机起飞
布局代码
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/rl_base"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<FrameLayout
android:id="@+id/fl_bg"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:id="@+id/iv_main_flying_bg"
android:layout_width="match_parent"
android:layout_height="match_parent&