Эх сурвалжийг харах

Appbar like google and fix property file appbar

Signed-off-by: Joris Bodin <joris.bodin@infomaniak.com>
Joris Bodin 5 жил өмнө
parent
commit
72ddb14d95

+ 7 - 7
src/main/res/layout/toolbar_standard.xml

@@ -23,7 +23,7 @@
     xmlns:tools="http://schemas.android.com/tools"
     android:id="@+id/appbar"
     android:layout_width="match_parent"
-    android:layout_height="?attr/actionBarSize"
+    android:layout_height="wrap_content"
     android:background="@color/bg_default"
     tools:viewBindingIgnore="true">
 
@@ -54,7 +54,7 @@
         <androidx.appcompat.widget.Toolbar
             android:id="@+id/toolbar"
             android:layout_width="match_parent"
-            android:layout_height="wrap_content"
+            android:layout_height="?attr/actionBarSize"
             android:background="@color/appbar"
             app:popupTheme="@style/Theme.AppCompat.DayNight.NoActionBar">
 
@@ -71,7 +71,7 @@
     <com.google.android.material.card.MaterialCardView
         android:id="@+id/home_toolbar"
         android:layout_width="match_parent"
-        android:layout_height="match_parent"
+        android:layout_height="50dp"
         android:layout_marginStart="16dp"
         android:layout_marginTop="4dp"
         android:layout_marginEnd="16dp"
@@ -119,11 +119,11 @@
             <com.google.android.material.button.MaterialButton
                 android:id="@+id/switch_account_button"
                 style="@style/Widget.AppTheme.Button.IconButton"
-                android:layout_width="38dp"
-                android:layout_height="38dp"
-                android:layout_marginEnd="8dp"
+                android:layout_width="42dp"
+                android:layout_height="42dp"
+                android:layout_marginEnd="6dp"
                 app:cornerRadius="@dimen/button_corner_radius"
-                app:iconSize="28dp"
+                app:iconSize="30dp"
                 app:layout_constraintBottom_toBottomOf="parent"
                 app:layout_constraintEnd_toEndOf="parent"
                 app:layout_constraintTop_toTopOf="parent" />