首先写入网络权限
导入imagerlouder的jar包
布局
activity的布局
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
>
<android.support.v4.view.ViewPager
android:layout_width="match_parent"
android:layout_height="200dp"
android:id="@+id/vp"
></android.support.v4.view.ViewPager>
<LinearLayout
android:id="@+id/linear"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignBottom="@+id/vp"
></LinearLayout>
</RelativeLayout>
drawable文件夹中的布局
point_selected.xml
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="oval"
>
<solid android:color="#f00"></solid>
</shape>
point_unselected.xml
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:sh