Ellipsize options labels to allow for longer titles
For L10n, we need longer text for some of the theme titles,
so allow longer titles but truncate in the UI so at least
we get the proper values for A11y.
Bug: 124542302
Change-Id: Iaae31903fce089a5de86c1ac225297aace6b62c7
diff --git a/res/layout/theme_option.xml b/res/layout/theme_option.xml
index 5560a35..7aa4380 100644
--- a/res/layout/theme_option.xml
+++ b/res/layout/theme_option.xml
@@ -21,10 +21,13 @@
<TextView
android:id="@+id/option_label"
- android:layout_width="wrap_content"
+ android:layout_width="@dimen/option_tile_width"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginBottom="@dimen/theme_option_label_margin"
+ android:ellipsize="end"
+ android:gravity="center_horizontal"
+ android:maxLines="1"
android:textAppearance="@style/OptionTitleTextAppearance"/>
<RelativeLayout
android:id="@+id/option_tile"