Browse Source

optimize toolbar layout after accessibility improvements

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
Andy Scherzinger 4 years ago
parent
commit
f32a74551c
1 changed files with 3 additions and 5 deletions
  1. 3 5
      src/main/res/layout/toolbar_standard.xml

+ 3 - 5
src/main/res/layout/toolbar_standard.xml

@@ -48,7 +48,7 @@
                 style="@style/Widget.MaterialComponents.Button.TextButton"
                 android:layout_width="wrap_content"
                 android:layout_height="wrap_content"
-                android:layout_marginStart="8dp"
+                android:layout_marginStart="7dp"
                 android:contentDescription="@string/actionbar_sort"
                 android:minWidth="0dp"
                 android:text="@string/menu_item_sort_by_date_newest_first"
@@ -69,7 +69,7 @@
                 style="@style/Widget.AppTheme.Button.IconButton"
                 android:layout_width="48dp"
                 android:layout_height="48dp"
-                android:layout_marginEnd="4dp"
+                android:layout_marginEnd="1dp"
                 android:contentDescription="@string/action_switch_grid_view"
                 app:cornerRadius="24dp"
                 app:icon="@drawable/ic_view_module"
@@ -149,7 +149,6 @@
                     style="@style/Widget.AppTheme.Button.IconButton"
                     android:layout_width="48dp"
                     android:layout_height="48dp"
-                    android:layout_marginStart="8dp"
                     android:contentDescription="@string/action_switch_grid_view"
                     app:cornerRadius="@dimen/button_corner_radius"
                     app:icon="@drawable/ic_menu"
@@ -162,7 +161,7 @@
                     android:id="@+id/search_text"
                     android:layout_width="0dp"
                     android:layout_height="48dp"
-                    android:layout_marginStart="18dp"
+                    android:layout_marginStart="13dp"
                     android:layout_marginEnd="18dp"
                     android:ellipsize="end"
                     android:gravity="start|center_vertical"
@@ -180,7 +179,6 @@
                     style="@style/Widget.AppTheme.Button.IconButton"
                     android:layout_width="48dp"
                     android:layout_height="48dp"
-                    android:layout_marginEnd="6dp"
                     app:cornerRadius="@dimen/button_corner_radius"
                     app:iconSize="30dp"
                     app:layout_constraintBottom_toBottomOf="parent"