From 4c3af7bf36380ae036b996faf7bdbbc13d0ae297 Mon Sep 17 00:00:00 2001 From: Ivan Iskandar <12537387+ivaniskandar@users.noreply.github.com> Date: Sat, 18 Jun 2022 23:12:22 +0700 Subject: [PATCH] MainActivity: Top bar status indicator adjustments (#7329) * Move to inside app bar for tablet ui layout so it can be hidden with the app bar at once * Remove the redundant parent view * Add text appearance style --- .../main/res/layout-sw720dp/main_activity.xml | 65 +++++++------------ app/src/main/res/layout/main_activity.xml | 40 +++++------- 2 files changed, 40 insertions(+), 65 deletions(-) diff --git a/app/src/main/res/layout-sw720dp/main_activity.xml b/app/src/main/res/layout-sw720dp/main_activity.xml index 4accfd4a66..691cdb7c2a 100644 --- a/app/src/main/res/layout-sw720dp/main_activity.xml +++ b/app/src/main/res/layout-sw720dp/main_activity.xml @@ -26,49 +26,40 @@ android:layout_height="?attr/actionBarSize" android:theme="?attr/actionBarTheme" /> - - - + - - - - + android:textAlignment="center" + android:textAppearance="?attr/textAppearanceLabelMedium" + android:textColor="?attr/colorOnTertiary" + android:visibility="gone" + tools:visibility="visible" /> + android:textAlignment="center" + android:textAppearance="?attr/textAppearanceLabelMedium" + android:textColor="?attr/colorOnPrimary" + android:visibility="gone" + tools:visibility="visible" /> - + - - + app:layout_constraintTop_toBottomOf="@+id/appbar" /> diff --git a/app/src/main/res/layout/main_activity.xml b/app/src/main/res/layout/main_activity.xml index 62edad8541..98e63ad494 100644 --- a/app/src/main/res/layout/main_activity.xml +++ b/app/src/main/res/layout/main_activity.xml @@ -32,41 +32,33 @@ android:layout_height="wrap_content" android:visibility="gone" /> - + tools:visibility="visible" /> - - - - - - - - - + tools:visibility="visible" />