<?xml version="1.0" encoding="utf-8"?> <RelativeLayout 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=".DetailActivity" android:id="@+id/rootView"> <com.google.android.material.tabs.TabLayout android:id="@+id/detailTab" android:layout_width="match_parent" android:layout_height="wrap_content" app:tabBackground="@color/black" app:tabTextColor="@color/white" app:tabSelectedTextColor="@color/green" app:tabIndicatorColor="@color/green" app:tabInlineLabel="true" > <com.google.android.material.tabs.TabItem android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="DETAILS"/> <com.google.android.material.tabs.TabItem android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="ARTIST(S)"/> <com.google.android.material.tabs.TabItem android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="VENUE"/> </com.google.android.material.tabs.TabLayout> <androidx.viewpager2.widget.ViewPager2 android:id="@+id/detailViewPager" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_below="@+id/detailTab"/> </RelativeLayout>