From eb83cb7d17ff5e46f90a305f79a45f517afc799b Mon Sep 17 00:00:00 2001 From: Konrad Pozniak Date: Fri, 6 Dec 2024 11:18:10 +0100 Subject: [PATCH] fix background of bottom tab bar (#4791) `TabLayout` with Material 3 styling has a thin line at the bottom. That makes sense when it is above the scrollable content, but not when it is below. Before: ![before](https://github.com/user-attachments/assets/619f125b-c817-4615-b6b6-29c885c90723) After: ![after](https://github.com/user-attachments/assets/3b22d183-c844-4859-9bf8-d530f63cf97e) --- app/src/main/res/layout/activity_main.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index f12bfc6470..ea775a4017 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -33,9 +33,9 @@ android:layout_width="match_parent" android:layout_height="48dp" android:orientation="horizontal" - app:contentInsetStart="0dp" android:paddingLeft="0dp" android:paddingRight="0dp" + app:contentInsetStart="0dp" app:contentInsetStartWithNavigation="0dp" app:navigationContentDescription="@string/action_open_drawer"> @@ -78,6 +78,7 @@ style="@style/TuskyTabAppearance" android:layout_width="match_parent" android:layout_height="?attr/actionBarSize" + android:background="?attr/colorSurface" app:tabGravity="fill" app:tabIndicatorGravity="top" app:tabMode="scrollable"