diff options
| author | 2023-04-27 02:55:16 +0000 | |
|---|---|---|
| committer | 2023-04-27 02:55:16 +0000 | |
| commit | 5a603c19da597f81507e9245bb17bda455c7578b (patch) | |
| tree | d7d0a0c538fd5ce7efe3e1c99e5c994e9d4d9015 /java | |
| parent | 91296443d7072e7f848cabba1f2059ff84ac4395 (diff) | |
| parent | 5d260d54f6352615375a4f1097b7a612be805fb8 (diff) | |
Merge "Change target labels' width specs" into udc-dev
Diffstat (limited to 'java')
| -rw-r--r-- | java/res/layout/resolve_grid_item.xml | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/java/res/layout/resolve_grid_item.xml b/java/res/layout/resolve_grid_item.xml index 312ecb7c..168397db 100644 --- a/java/res/layout/resolve_grid_item.xml +++ b/java/res/layout/resolve_grid_item.xml @@ -40,9 +40,14 @@ <Space android:layout_width="1dp" android:layout_height="7dp"/> + <!-- NOTE: for id/text1 and id/text2 below set the width to match parent as a workaround for + b/269395540 i.e. prevent views bounds change during a transition animation. It does not + affect pinned views as we change their layout parameters programmatically (but that's even + more narrow possibility and it's not clear if the root cause or the bug would affect it). + --> <!-- App name or Direct Share target name, DS set to 2 lines --> <TextView android:id="@android:id/text1" - android:layout_width="wrap_content" + android:layout_width="match_parent" android:layout_height="wrap_content" android:textAppearance="?android:attr/textAppearanceSmall" android:textColor="?androidprv:attr/materialColorOnSurface" @@ -56,7 +61,7 @@ android:textAppearance="?android:attr/textAppearanceSmall" android:textSize="12sp" android:textColor="?androidprv:attr/materialColorOnSurfaceVariant" - android:layout_width="wrap_content" + android:layout_width="match_parent" android:layout_height="wrap_content" android:lines="1" android:gravity="top|center_horizontal" |