From 180ac4f8932a130278f0d2f1b58d10ecd3bd15fb Mon Sep 17 00:00:00 2001 From: 1 Date: Wed, 29 Mar 2023 20:10:45 +0000 Subject: Allow for longer headlines Constraint on headline length was too short for some languages. Also need to ensure that longer strings work within the layout. Switched to ConstraintLayout for that, with a Barrier to ensure that the modify share and text toggle UI elements don't collide with the headline. Test: Visual verification in a variety of configurations (diff share payloads, modify share action, etc) Bug: 275755230 Change-Id: I2c2f1d9f9acaebd4f41d8d6f0791b58a26175100 --- java/res/layout/chooser_headline_row.xml | 23 +++++++++++++++++------ java/res/values/strings.xml | 14 +++++++------- 2 files changed, 24 insertions(+), 13 deletions(-) (limited to 'java') diff --git a/java/res/layout/chooser_headline_row.xml b/java/res/layout/chooser_headline_row.xml index 9dfab892..d7429ddf 100644 --- a/java/res/layout/chooser_headline_row.xml +++ b/java/res/layout/chooser_headline_row.xml @@ -15,9 +15,10 @@ ~ limitations under the License. --> - + + @@ -49,9 +60,9 @@ android:id="@+id/include_text_action" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_alignParentEnd="true" - android:layout_below="@id/reselection_action" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintTop_toBottomOf="@id/reselection_action" android:layout_alignWithParentIfMissing="true" android:visibility="gone" /> - + diff --git a/java/res/values/strings.xml b/java/res/values/strings.xml index f38666e4..546ef249 100644 --- a/java/res/values/strings.xml +++ b/java/res/values/strings.xml @@ -137,34 +137,34 @@ } - + Sharing text - + Sharing link - + {count, plural, =1 {Sharing image} other {Sharing # images} } - + {count, plural, =1 {Sharing video} other {Sharing # videos} } + (for example: sharing a mixture of photos and videos [CHAR_LIMIT=50] --> {count, plural, =1 {Sharing # item} other {Sharing # items} } + [CHAR_LIMIT=50] --> Sharing image with text + attached. [CHAR_LIMIT=50] --> Sharing image with link -- cgit v1.2.3-59-g8ed1b