xml
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".MainActivity"> <!-- SingleGallery --> <androidx.viewpager.widget.ViewPager android:id="@+id/view" android:layout_width="match_parent" android:layout_height="240dp"> <androidx.viewpager.widget.PagerTitleStrip android:layout_width="match_parent" android:layout_height="35dp"/> </androidx.viewpager.widget.ViewPager> </LinearLayout>
xml2