I want to have few activities and few layouts in my application. There should be 100 pages to read about science, nature and more. but I don't want to make 100 layouts. I want to add different pages to my view adapter as you would with a list. Use the same layout for all and just add new data to it (like a list). I want to create pages with same listview concept but different datas.
There is already a post about what I am talking about: Using viewpager in my application but I can't understand how to do it.. I did some attempts.. I put the android-support-v4.jar in libs.. I made the xml file:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
>
<android.support.v4.view.ViewPager
android:id="@+id/pager"
android:layout_width="match_parent"
android:layout_height="0px"
android:layout_weight="1" >
</android.support.v4.view.ViewPager>
</LinearLayout>
Which is the next step?