From cfee94d448e89d9ec34cd50611425103e30f20e7 Mon Sep 17 00:00:00 2001 From: Salvador Martinez Date: Mon, 15 Aug 2016 16:59:30 -0700 Subject: [PATCH] Made dialog material design compliant modified layout file to get the correct padding and layout as described in the material design documents. Bug: 30709085 Change-Id: I18edf220a62228872793fb5b655b02751f38e1f5 (cherry picked from commit cdb0f56db8332215cdf52b00169a7e34cb8dbee5) --- res/layout/user_dictionary_add_word.xml | 105 ++++++++++++------------ 1 file changed, 53 insertions(+), 52 deletions(-) diff --git a/res/layout/user_dictionary_add_word.xml b/res/layout/user_dictionary_add_word.xml index 3624dad52bd..2b8c19a8046 100644 --- a/res/layout/user_dictionary_add_word.xml +++ b/res/layout/user_dictionary_add_word.xml @@ -14,72 +14,73 @@ limitations under the License. --> + android:id="@+id/user_dict_settings_add_dialog_top" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical"> + android:layout_height="wrap_content" + android:orientation="vertical"> - + style="?android:attr/windowTitleStyle" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginStart="24dip" + android:layout_marginEnd="24dip" + android:layout_marginTop="24dip" + android:layout_marginBottom="0dip" + android:ellipsize="end" + android:gravity="center_vertical|start" + android:singleLine="true" + android:text="@string/user_dict_settings_add_dialog_title" /> + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_gravity="fill_horizontal|center_vertical" + android:layout_marginStart="24dip" + android:layout_marginEnd="24dip" + android:layout_marginTop="20dip" + android:layout_marginBottom="24dip" + android:hint="@string/user_dict_settings_add_word_hint" + android:imeOptions="flagNoFullscreen" + android:inputType="textNoSuggestions" + android:maxLength="@integer/maximum_user_dictionary_word_length"> + android:layout_height="wrap_content" + android:divider="?android:attr/dividerHorizontal" + android:dividerPadding="0dip" + android:orientation="vertical" + android:showDividers="beginning"> -