<?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:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/mainBackground" android:orientation="vertical"> <RelativeLayout android:layout_width="match_parent" android:layout_height="@dimen/titleViewHeight" android:background="@color/mainThemeColor"> <TextView android:id="@+id/titleView" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true" android:gravity="center" android:text="@string/app_name" android:textColor="@color/white" android:textSize="@dimen/titleFontSize" /> <ImageView android:id="@+id/rightOptionView" android:layout_width="wrap_content" android:layout_height="match_parent" android:layout_alignParentEnd="true" android:paddingHorizontal="@dimen/dp_10" android:src="@drawable/ic_search_white" /> </RelativeLayout> <com.google.android.material.tabs.TabLayout android:id="@+id/workOrderTabLayout" android:layout_width="match_parent" android:layout_height="wrap_content" app:tabIndicatorColor="@color/mainThemeColor" app:tabIndicatorFullWidth="false" app:tabIndicatorHeight="3dp" app:tabSelectedTextColor="@color/mainThemeColor" app:tabTextColor="@color/mainTextColor" /> <View android:layout_width="match_parent" android:layout_height="@dimen/lineViewSize" android:background="@color/hintTextColor" /> <androidx.viewpager.widget.ViewPager android:id="@+id/workOrderViewPager" android:layout_width="match_parent" android:layout_height="0dp" android:layout_weight="1" /> </LinearLayout>