summaryrefslogtreecommitdiffstats
path: root/res/layout/preset_picker_item.xml
diff options
context:
space:
mode:
Diffstat (limited to 'res/layout/preset_picker_item.xml')
-rw-r--r--res/layout/preset_picker_item.xml19
1 files changed, 11 insertions, 8 deletions
diff --git a/res/layout/preset_picker_item.xml b/res/layout/preset_picker_item.xml
index 0cafd34..405b735 100644
--- a/res/layout/preset_picker_item.xml
+++ b/res/layout/preset_picker_item.xml
@@ -18,14 +18,11 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:gravity="center"
- android:orientation="vertical"
- android:paddingLeft="4dp"
- android:paddingRight="4dp"
- android:paddingTop="16dp" >
+ android:minWidth="96dp"
+ android:orientation="vertical">
<FrameLayout
- android:layout_width="96dp"
+ android:layout_width="match_parent"
android:layout_height="96dp"
android:background="@drawable/transparency_tileable" >
@@ -37,10 +34,16 @@
android:text="@string/captioning_preview_characters" />
</FrameLayout>
+ <!-- HACK: GridView doesn't perform layout properly in this configuration,
+ so we need to manually set the height to roughly two scaled lines. -->
<TextView
android:id="@+id/summary"
- android:layout_width="96dp"
+ android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:gravity="center" />
+ android:ellipsize="end"
+ android:maxLines="2"
+ android:minLines="2"
+ android:gravity="top|center_horizontal"
+ android:textAppearance="@android:style/TextAppearance.Material.Body1" />
</LinearLayout>