如何在viewFlipper中查找当前视图位置..
假设它是viewFlipper中的最后一个或第一个子级
<ViewFlipper
android:id="@+id/imageFrames"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@android:drawable/screen_background_dark" >
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"><RelativeLayout>
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"><RelativeLayout>
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"><RelativeLayout>
</ViewFlipper>发布于 2011-12-15 21:57:41
您可以使用viewFlipper.getDisplayedChild()。
https://stackoverflow.com/questions/8521133
复制相似问题