[Android development] How to use View Pager
This example shows how you can create an image pager in android. Algorithm: 1.) Create a new project by File-> New -> Android Project name it ViewPagerExample. 2.) Write following into main.xml: 1 2 3 4 5 6 7 8 9 10 11 12 13 <?xml version= "1.0" encoding= "utf-8" ?> <LinearLayout xmlns:android= " http://schemas.android.com/apk/res/android " android:layout_width= "fill_parent" android:layout_height= "fill_parent" android:orientation= "vertical" > <android.support.v4.view.ViewPager android:id= "@+id/pager" android:layout_width= "match_parent" android:layout_height= "match_parent" /> </LinearLayout...