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"
diff --git a/res/values/styles.xml b/res/values/styles.xml
index 6773d65..9cfda57 100644
--- a/res/values/styles.xml
+++ b/res/values/styles.xml
@@ -51,6 +51,7 @@
 
     <style name="OptionTitleTextAppearance" parent="@android:style/TextAppearance.DeviceDefault.Small">
         <item name="android:textColor">@color/option_title_color</item>
+        <item name="android:textAlignment">center</item>
     </style>