diff --git a/app/src/main/res/drawable/tab_indicator_bottom.xml b/app/src/main/res/drawable/tab_indicator_bottom.xml index 82ce65a388..0db28ec28a 100644 --- a/app/src/main/res/drawable/tab_indicator_bottom.xml +++ b/app/src/main/res/drawable/tab_indicator_bottom.xml @@ -1,8 +1,8 @@ + android:left="16dp" + android:right="16dp"> diff --git a/app/src/main/res/drawable/tab_indicator_top.xml b/app/src/main/res/drawable/tab_indicator_top.xml new file mode 100644 index 0000000000..74973260ca --- /dev/null +++ b/app/src/main/res/drawable/tab_indicator_top.xml @@ -0,0 +1,18 @@ + + + + + + + + + + + diff --git a/app/src/main/res/layout/activity_account.xml b/app/src/main/res/layout/activity_account.xml index b411df4571..880f3d5003 100644 --- a/app/src/main/res/layout/activity_account.xml +++ b/app/src/main/res/layout/activity_account.xml @@ -444,6 +444,9 @@ android:layout_width="match_parent" android:layout_height="wrap_content" app:tabGravity="center" + app:tabIndicatorHeight="4dp" + app:tabIndicator="@drawable/tab_indicator_top" + app:tabIndicatorFullWidth="true" app:tabMode="scrollable" /> diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index 7c39d4b606..042241d570 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -45,6 +45,8 @@ android:layout_width="match_parent" android:layout_height="wrap_content" app:tabGravity="fill" + app:tabIndicator="@drawable/tab_indicator_top" + app:tabIndicatorFullWidth="true" app:tabMaxWidth="0dp" app:tabMode="scrollable" /> @@ -80,8 +82,9 @@ android:layout_height="?attr/actionBarSize" android:background="?attr/colorSurface" app:tabGravity="fill" - app:tabIndicatorGravity="top" app:tabIndicator="@drawable/tab_indicator_bottom" + app:tabIndicatorFullWidth="true" + app:tabIndicatorGravity="top" app:tabMode="scrollable" app:tabPaddingTop="0dp" /> diff --git a/app/src/main/res/layout/activity_search.xml b/app/src/main/res/layout/activity_search.xml index 8026939b1f..f9173fe59a 100644 --- a/app/src/main/res/layout/activity_search.xml +++ b/app/src/main/res/layout/activity_search.xml @@ -26,6 +26,8 @@ android:layout_width="match_parent" android:layout_height="wrap_content" app:tabGravity="fill" + app:tabIndicator="@drawable/tab_indicator_top" + app:tabIndicatorFullWidth="true" app:tabMaxWidth="0dp" app:tabMode="fixed" />