2011-12-15 71 views
0

如何找到viewFlipper當前視圖位置..位置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> 

回答

1

的第一個孩子可以使用viewFlipper.getDisplayedChild()