今天学习了自动切换效果模式,viewFlipper英文是视图视觉。
***特别的设置:android:flipInterval="翻页计时" 设置里面每一个View显示的时间,startFlipping()启动自动滑动过程,stopFlipping()停止自动化过程。
例子:
<ViewFlipper xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/vf_activity"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/guide_1" />
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/guide_2" />
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/guide_3" />
</ViewFlipper>
在activity中实现就可以使用。startFlipping()启动自动滑动过程,stopFlipping()停止自动化过程。