summaryrefslogtreecommitdiff
path: root/java/res
diff options
context:
space:
mode:
author 1 <mrcasey@google.com> 2023-04-11 14:29:32 +0000
committer 1 <mrcasey@google.com> 2023-04-11 14:33:21 +0000
commitfc7ddd61dd62105dae67594517b9344afca163ff (patch)
treec043520214a181e3f17631d2672596218f0c0e0e /java/res
parentd1614650f2b1cacbfd45520ed12e229c87bf0ea3 (diff)
Update truncation of action labels to spec.
Allow up to 2 lines, ellipsize the ends, narrow the width. Bug: 277351192 Test: Use sharetest with a very long action label. Change-Id: Ib49d55bba9b2f72bc843aee8f1ec5a9253028fe3
Diffstat (limited to 'java/res')
-rw-r--r--java/res/layout/chooser_action_view.xml5
1 files changed, 3 insertions, 2 deletions
diff --git a/java/res/layout/chooser_action_view.xml b/java/res/layout/chooser_action_view.xml
index d74798e2..724274a6 100644
--- a/java/res/layout/chooser_action_view.xml
+++ b/java/res/layout/chooser_action_view.xml
@@ -19,10 +19,11 @@
android:drawablePadding="8dp"
android:textColor="?android:attr/textColorPrimary"
android:textSize="12sp"
- android:maxWidth="192dp"
- android:singleLine="true"
+ android:maxWidth="80dp"
android:clickable="true"
android:drawableTint="?android:attr/textColorPrimary"
android:drawableTintMode="src_in"
+ android:ellipsize="end"
+ android:maxLines="2"
style="?android:attr/borderlessButtonStyle"
/>