|
24 | 24 | <LinearLayout |
25 | 25 | xmlns:android="http://schemas.android.com/apk/res/android" |
26 | 26 | xmlns:tools="http://schemas.android.com/tools" |
| 27 | + xmlns:app="http://schemas.android.com/apk/res-auto" |
27 | 28 | android:id="@+id/activity_image" |
28 | 29 | android:layout_width="match_parent" |
29 | 30 | android:layout_height="match_parent" |
|
35 | 36 | android:layout_width="match_parent" |
36 | 37 | android:layout_height="wrap_content"/> |
37 | 38 |
|
38 | | - <android.support.v4.view.ViewPager |
39 | | - android:id="@+id/view_pager" |
| 39 | + <RelativeLayout |
40 | 40 | android:layout_width="match_parent" |
41 | 41 | android:layout_height="match_parent"> |
42 | | - </android.support.v4.view.ViewPager> |
| 42 | + |
| 43 | + <android.support.v4.view.ViewPager |
| 44 | + android:id="@+id/view_pager" |
| 45 | + android:layout_width="match_parent" |
| 46 | + android:layout_height="match_parent"> |
| 47 | + </android.support.v4.view.ViewPager> |
| 48 | + |
| 49 | + <com.rd.PageIndicatorView |
| 50 | + android:id="@+id/pageIndicator" |
| 51 | + android:layout_marginBottom="16dp" |
| 52 | + android:layout_centerHorizontal="true" |
| 53 | + android:layout_alignParentBottom="true" |
| 54 | + android:layout_width="wrap_content" |
| 55 | + android:layout_height="wrap_content" |
| 56 | + app:piv_viewPager="@id/view_pager" |
| 57 | + app:piv_animationType="worm" |
| 58 | + app:piv_autoVisibility="false" |
| 59 | + app:piv_radius="4dp" |
| 60 | + app:piv_padding="12dp" |
| 61 | + app:piv_unselectedColor="@color/diy_gray2" |
| 62 | + app:piv_selectedColor="@color/diy_red" |
| 63 | + /> |
| 64 | + </RelativeLayout> |
| 65 | + |
43 | 66 | </LinearLayout> |
0 commit comments