1、具体步骤

说下大概实现步骤,一般我们有两种,一种是viewpager+作为游标的点 。另外一种是重写viewpager。
效果图:
1.1 布局,直接viewpager+一个viewgroup就好。
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.maxence.viewpager.MainActivity" >
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="220dp" >
<android.support.v4.view.ViewPager
android:id="@+id/vp_pager"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<!-- 作为viewgroup 动态 add 游标 -->
<LinearLayout
android:id="@+id/ll_container"
android:layout_width="match_parent"
android:layout_height="30dp"
android:gravity="center"
android:orientation="horizontal"
android:layout_alignParentBottom="true"
></LinearLayout>
</RelativeLayout>
</RelativeLayout>