Modes icon picker: measuring improvements

Ensure that horizontal spacing between items in the icon picker is distributed to the left and right of the row instead of between the items. This makes the horizontal and vertical spacing the same.

Bug: 359171199
Test: manual + hsv
Flag: android.app.modes_ui
Change-Id: I68c3860ba4092bb6fde2a1218b3f6a95d0c373da
This commit is contained in:
Matías Hernández
2024-08-12 15:32:44 +02:00
parent 2a01b356ae
commit a274bcb400
2 changed files with 2 additions and 3 deletions

View File

@@ -24,7 +24,7 @@
<androidx.recyclerview.widget.RecyclerView <androidx.recyclerview.widget.RecyclerView
android:id="@+id/icon_list" android:id="@+id/icon_list"
android:layout_width="0dp" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:clipToPadding="true" android:clipToPadding="true"
android:nestedScrollingEnabled="false" android:nestedScrollingEnabled="false"

View File

@@ -17,10 +17,9 @@
<FrameLayout <FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_width="@dimen/zen_mode_icon_list_item_size"
android:layout_height="@dimen/zen_mode_icon_list_item_size" android:layout_height="@dimen/zen_mode_icon_list_item_size"
android:clickable="true"> android:clickable="true">
<!-- width is match_parent to distribute remaining horizontal space -->
<ImageView <ImageView
android:id="@+id/icon_image_view" android:id="@+id/icon_image_view"