<?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" android:id="@+id/rootView" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <include layout="@layout/include_base_title" /> <View android:layout_width="match_parent" android:layout_height="@dimen/borderThickness" android:background="@color/hintColor" /> <LinearLayout android:layout_width="match_parent" android:layout_height="0dp" android:layout_weight="1" android:orientation="vertical"> <com.google.android.material.tabs.TabLayout android:id="@+id/topTabLayout" android:layout_width="match_parent" android:layout_height="wrap_content" app:tabIndicatorColor="@color/themeColor" app:tabIndicatorFullWidth="false" app:tabIndicatorHeight="3dp" app:tabMode="scrollable" app:tabSelectedTextColor="@color/black" /> <androidx.viewpager.widget.ViewPager android:id="@+id/detailViewPager" android:layout_width="match_parent" android:layout_height="match_parent" /> </LinearLayout> </LinearLayout>