//mainactivity.xml
<ViewFlipper
android:id="@+id/view_pager"
android:layout_width="match_parent"
android:layout_height="match_parent">
<RelativeLayout
android:id="@+id/relativeLayout2"
android:layout_width="match_parent"
android:layout_height="279dp"
android:layout_marginBottom="5dp"
android:layout_marginTop="5dp"
android:background="@android:color/background_light"
android:gravity="center" >
<TextView
android:id="@+id/textView3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_below="@+id/imageView7"
android:layout_marginLeft="14dp"
android:layout_marginTop="14dp"
android:text="Event Name" />
<TextView
android:id="@+id/textView4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/textView3"
android:layout_below="@+id/textView3"
android:text="Venue, Date"
android:textSize="12sp" />
<TextView
android:id="@+id/textView5"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/textView4"
android:layout_below="@+id/textView4"
android:text="Description"
android:textSize="12sp" />
<ImageView
android:id="@+id/imageView7"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_below="@+id/textView2"
android:layout_marginTop="14dp"
android:src="@drawable/demo" />
<TextView
android:id="@+id/textView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_marginTop="5dp"
android:text="Event of the Week" />
</RelativeLayout>
</ViewFlipper>
I want to implement slideshow for both images and text for the above layout. And the values are from my server using json. How can i implement this. I am stuck here. does any body knows the answer.
Any body have reference link..