From 285fb047113b3af35f780941361c715b56efcdb0 Mon Sep 17 00:00:00 2001 From: Alan Viverette Date: Tue, 21 Oct 2014 16:51:54 -0700 Subject: [PATCH] Adjust caption preset picker items dimens for Material BUG: 18027521 Change-Id: Icce397410af495639df0b6852b21c159ec103ed8 --- res/layout/grid_picker_dialog.xml | 11 ++++++++--- res/layout/preset_picker_item.xml | 19 +++++++++++-------- 2 files changed, 19 insertions(+), 11 deletions(-) diff --git a/res/layout/grid_picker_dialog.xml b/res/layout/grid_picker_dialog.xml index a52f0791ea6..1e04188ff84 100644 --- a/res/layout/grid_picker_dialog.xml +++ b/res/layout/grid_picker_dialog.xml @@ -17,16 +17,21 @@ + android:layout_height="match_parent" + android:paddingStart="24dp" + android:paddingTop="16dp" + android:paddingEnd="24dp"> + android:stretchMode="columnWidth" /> diff --git a/res/layout/preset_picker_item.xml b/res/layout/preset_picker_item.xml index 0cafd347b65..405b7357444 100644 --- a/res/layout/preset_picker_item.xml +++ b/res/layout/preset_picker_item.xml @@ -18,14 +18,11 @@ + android:minWidth="96dp" + android:orientation="vertical"> @@ -37,10 +34,16 @@ android:text="@string/captioning_preview_characters" /> + + android:ellipsize="end" + android:maxLines="2" + android:minLines="2" + android:gravity="top|center_horizontal" + android:textAppearance="@android:style/TextAppearance.Material.Body1" />