Fix preview not shown due to large text size
We limit the line count for the text views to avoid too much text
content squeezing the lock screen preview.
Test: Manually tested the preview shows. See bug.
Bug: 299205672
Change-Id: Id93ddbd738701b36df7bb24b7c5bd041aa09aa83
diff --git a/res/layout/clock_size_radio_button_group.xml b/res/layout/clock_size_radio_button_group.xml
index 56d0ab7..5e8fcf5 100644
--- a/res/layout/clock_size_radio_button_group.xml
+++ b/res/layout/clock_size_radio_button_group.xml
@@ -43,12 +43,17 @@
style="@style/SectionTitleTextStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
+ android:ellipsize="end"
+ android:singleLine="true"
android:text="@string/clock_size_dynamic" />
<TextView
style="@style/SectionSubtitleTextStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
+ android:maxLines="2"
+ android:ellipsize="end"
+ android:singleLine="false"
android:text="@string/clock_size_dynamic_description" />
</LinearLayout>
</LinearLayout>
@@ -76,12 +81,17 @@
style="@style/SectionTitleTextStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
+ android:ellipsize="end"
+ android:singleLine="true"
android:text="@string/clock_size_small" />
<TextView
style="@style/SectionSubtitleTextStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
+ android:maxLines="2"
+ android:ellipsize="end"
+ android:singleLine="false"
android:text="@string/clock_size_small_description" />
</LinearLayout>
</LinearLayout>