optimize toolbar layout after accessibility improvements

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
Andy Scherzinger 2020-11-19 10:33:40 +01:00
parent 8c0878de71
commit f32a74551c
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B

View file

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