易采站长站为您分析Android编程之界面跳动提示动画效果实现方法,实例分析了Android动画效果的布局及功能相关实现技巧,具有一定参考借鉴价值,需要的朋友可以参考下
本文实例讲述了Android编程之界面跳动提示动画效果实现方法。,具体如下:
上一个效果图:


先上布局:
- <RelativeLayout xmlns:android="http://www.easck.com/apk/res/android" xmlns:tools="http://www.easck.com/tools"
- android:layout_width="match_parent" android:layout_height="match_parent" >
- <RelativeLayout android:id="@+id/red"
- android:layout_width="match_parent" android:layout_height="match_parent"
- android:background="#ff0000" > <TextView
- android:layout_width="wrap_content" android:layout_height="wrap_content"
- android:layout_above="@+id/switch2blue" android:layout_centerHorizontal="true"
- android:text="首页" /> <Button
- android:id="@+id/switch2blue" android:layout_width="wrap_content"
- android:layout_height="wrap_content" android:layout_centerInParent="true"
- android:text="置换位蓝色" /> </RelativeLayout>
- <RelativeLayout android:id="@+id/blue"
- android:layout_width="match_parent" android:layout_height="match_parent"
- android:background="#0000ff" > <TextView
- android:layout_width="wrap_content" android:layout_height="wrap_content"
- android:layout_above="@+id/switch2red" android:layout_centerHorizontal="true"
- android:text="第二页" /> <Button










