|
@@ -1,5 +1,5 @@
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
-<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
+<FrameLayout 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"
|
|
@@ -13,43 +13,49 @@
|
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
- <include
|
|
|
- android:id="@+id/toolbar_include"
|
|
|
- layout="@layout/common_toolbar_layout" />
|
|
|
+ <LinearLayout
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent">
|
|
|
|
|
|
- <com.google.android.material.tabs.TabLayout
|
|
|
- android:id="@+id/tablayout"
|
|
|
- android:layout_centerHorizontal="true"
|
|
|
- android:layout_below="@+id/toolbar_include"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="@dimen/dp_44"
|
|
|
- android:scrollbars="none"
|
|
|
- app:layout_constraintRight_toRightOf="parent"
|
|
|
- app:layout_constraintLeft_toLeftOf="parent"
|
|
|
- app:layout_constraintTop_toBottomOf="@+id/toolbar_include"
|
|
|
- app:tabBackground="@null"
|
|
|
- app:tabGravity="fill"
|
|
|
- app:tabPaddingStart="0dp"
|
|
|
- app:tabPaddingEnd="0dp"
|
|
|
- app:tabIndicator="@drawable/appoint_course_tab_indicator"
|
|
|
- app:tabIndicatorColor="@color/color_2dc7aa"
|
|
|
- app:tabIndicatorFullWidth="false"
|
|
|
- app:tabIndicatorHeight="4dp"
|
|
|
- app:tabMode="scrollable"
|
|
|
- app:tabRippleColor="@null"
|
|
|
- app:tabSelectedTextColor="@color/color_131415"
|
|
|
- app:tabTextAppearance="@style/tab_layout_style"
|
|
|
- app:tabTextColor="@color/color_80000000" />
|
|
|
+ <include
|
|
|
+ android:id="@+id/toolbar_include"
|
|
|
+ layout="@layout/common_toolbar_layout" />
|
|
|
|
|
|
+ <com.google.android.material.tabs.TabLayout
|
|
|
+ android:id="@+id/tablayout"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="@dimen/dp_44"
|
|
|
+ android:layout_below="@+id/toolbar_include"
|
|
|
+ android:layout_centerHorizontal="true"
|
|
|
+ android:scrollbars="none"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/toolbar_include"
|
|
|
+ app:tabBackground="@null"
|
|
|
+ app:tabGravity="fill"
|
|
|
+ app:tabIndicator="@drawable/appoint_course_tab_indicator"
|
|
|
+ app:tabIndicatorColor="@color/color_2dc7aa"
|
|
|
+ app:tabIndicatorFullWidth="false"
|
|
|
+ app:tabIndicatorHeight="4dp"
|
|
|
+ app:tabMode="scrollable"
|
|
|
+ app:tabPaddingEnd="0dp"
|
|
|
+ app:tabPaddingStart="0dp"
|
|
|
+ app:tabRippleColor="@null"
|
|
|
+ app:tabSelectedTextColor="@color/color_131415"
|
|
|
+ app:tabTextAppearance="@style/tab_layout_style"
|
|
|
+ app:tabTextColor="@color/color_80000000" />
|
|
|
|
|
|
- <androidx.viewpager2.widget.ViewPager2
|
|
|
- android:layout_below="@+id/tablayout"
|
|
|
- android:id="@+id/viewPager"
|
|
|
- android:descendantFocusability="blocksDescendants"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:overScrollMode="never"
|
|
|
- android:scrollbars="none"
|
|
|
- app:layout_constraintBottom_toBottomOf="parent"
|
|
|
- app:layout_constraintTop_toBottomOf="@+id/toolbar_include" />
|
|
|
-</RelativeLayout>
|
|
|
+
|
|
|
+ <androidx.viewpager2.widget.ViewPager2
|
|
|
+ android:id="@+id/viewPager"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_below="@+id/tablayout"
|
|
|
+ android:overScrollMode="never"
|
|
|
+ android:scrollbars="none"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/toolbar_include" />
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+</FrameLayout>
|