Android : ViewFlipper Arrangement

on Tuesday, March 24, 2015


i have a viewflipper like below



<ViewFlipper
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/ViewFlipper">

<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/aatrox"/>

<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ahri"/>

<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/akali"/>

<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/alistar"/>

<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/amumu"/>

</ViewFlipper>


but when i execute my app. it display in different arrangement. it shows like aatrox amumu alistar akali ahri


how can i set it in its proper positioning ? like as if it is alphabetically arranged ? .. i want the components to be displayed by the viewflipper the way it is arranged within the codes


i hope someone can help me out here. thanks


0 comments:

Post a Comment