更新时间:2022-12-05 17:20:58
然后你正在寻找viewflippers。
Then you are looking for viewflippers.
这些可以帮助你上手,
的http://saigeethamn.blogspot.com/2010/05/image-switcher-view-android-developer.html
http://www.warriorpoint.com/blog/2009/05/26/android-switching-screens-in-an-activity-with-animations-using-viewflipper/
http://www.androidguys.com/2008/08 / 14 /翻转,您-意见/
的http://www.$c$cshogun.com/blog/2009/04/16/how-to-implement-swipe-action-in-android/
样品。
<Gallery
android:id="@+id/Gallery01"
android:layout_width="fill_parent"
android:layout_height="wrap_content"></Gallery> <ImageSwitcher
android:id="@+id/ImageSwitcher01"
android:layout_width="fill_parent"
android:layout_height="fill_parent"> </ImageSwitcher>
iSwitcher = (ImageSwitcher) findViewById(R.id.ImageSwitcher01);
iSwitcher.setFactory(this);
iSwitcher.setInAnimation(AnimationUtils.loadAnimation(this,
android.R.anim.fade_in));
iSwitcher.setOutAnimation(AnimationUtils.loadAnimation(this,
android.R.anim.fade_out));