activity_main.xml 1.0 KB

1234567891011121314151617181920212223242526272829
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. android:id="@+id/activity_main"
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. android:orientation="vertical">
  8. <com.zhpan.bannerview.view.BannerViewPager
  9. android:id="@+id/viewpager"
  10. android:layout_width="match_parent"
  11. android:layout_height="150dp"
  12. android:layout_margin="10dp"
  13. app:indicator_gravity="end"
  14. app:indicator_radius="6dp"
  15. app:interval="5000" />
  16. <com.zhpan.bannerview.view.BannerViewPager
  17. android:id="@+id/viewpager2"
  18. android:layout_width="match_parent"
  19. android:layout_height="150dp"
  20. android:layout_margin="10dp" />
  21. <com.zhpan.bannerview.view.BannerViewPager
  22. android:id="@+id/viewpager3"
  23. android:layout_width="match_parent"
  24. android:layout_height="match_parent"
  25. android:layout_margin="10dp" />
  26. </LinearLayout>