diff options
author | Jean Chalard <jchalard@google.com> | 2011-12-21 18:13:09 +0900 |
---|---|---|
committer | Jean Chalard <jchalard@google.com> | 2012-01-23 16:14:37 +0900 |
commit | 75eba8cf56e13554fbb91b6411a3007676371357 (patch) | |
tree | 522b8dec6dd1af24ab6dea92c1836f3671002968 /res/layout | |
parent | faee5f4bdfce82b920dc27119cafcdda7b4c4a8a (diff) | |
download | packages_apps_settings-75eba8cf56e13554fbb91b6411a3007676371357.zip packages_apps_settings-75eba8cf56e13554fbb91b6411a3007676371357.tar.gz packages_apps_settings-75eba8cf56e13554fbb91b6411a3007676371357.tar.bz2 |
Make the layout of the add word dialog easier to understand
Change-Id: I1a71d5c95c142655219c7ab3ae4f67fa0b1f3d1a
Diffstat (limited to 'res/layout')
-rw-r--r-- | res/layout/user_dictionary_add_word.xml | 77 |
1 files changed, 45 insertions, 32 deletions
diff --git a/res/layout/user_dictionary_add_word.xml b/res/layout/user_dictionary_add_word.xml index 26cfd68..25c61f7 100644 --- a/res/layout/user_dictionary_add_word.xml +++ b/res/layout/user_dictionary_add_word.xml @@ -37,47 +37,60 @@ android:background="@android:color/holo_blue_light" /> </LinearLayout> - <EditText android:id="@+id/user_dictionary_add_word_text" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:gravity="center_vertical|left" - android:inputType="textNoSuggestions" - android:imeOptions="flagNoFullscreen" - android:paddingBottom="10dip" - android:layout_marginLeft="8dip" - android:layout_marginRight="8dip" - android:visibility="visible"> - <requestFocus/> - </EditText> - - <LinearLayout android:id="@+id/user_dict_settings_add_dialog_shortcut_interface" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:orientation="vertical" - android:visibility="gone" > -<!-- Shortcut interface. Reactivate when shortcut are supported by the subsystem. - <TextView style="?android:attr/textAppearanceSmall" + <GridLayout android:id="@+id/user_dictionary_add_word_grid" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginLeft="8dip" - android:text="@string/user_dict_settings_add_shortcut_option_name" /> - <EditText android:id="@+id/user_dictionary_settings_add_dialog_shortcut" - android:layout_width="match_parent" + android:layout_marginRight="8dip" + android:columnCount="2"> + <TextView android:id="@+id/user_dictionary_add_word_label" + style="?android:attr/textAppearanceSmall" + android:layout_width="wrap_content" android:layout_height="wrap_content" + android:layout_gravity="left|center_vertical" + android:text="@string/user_dict_settings_add_word_option_name" + android:visibility="gone" /> + <EditText android:id="@+id/user_dictionary_add_word_text" + android:layout_width="wrap_content" + android:layout_gravity="fill_horizontal|center_vertical" android:layout_marginLeft="8dip" - android:layout_marginRight="8dip" + android:layout_marginBottom="8dip" + android:layout_marginTop="8dip" android:inputType="textNoSuggestions" - android:imeOptions="flagNoFullscreen" /> ---> - <TextView android:layout_width="match_parent" + android:imeOptions="flagNoFullscreen"> + <requestFocus /> + </EditText> + <TextView android:id="@+id/user_dictionary_add_shortcut_label" + style="?android:attr/textAppearanceSmall" + android:layout_width="wrap_content" android:layout_height="wrap_content" + android:layout_gravity="left|center_vertical" + android:text="@string/user_dict_settings_add_shortcut_option_name" + android:visibility="gone" /> + <EditText android:id="@+id/user_dictionary_settings_add_dialog_shortcut" + android:layout_width="wrap_content" + android:layout_gravity="fill_horizontal|center_vertical" android:layout_marginLeft="8dip" - android:text="@string/user_dict_settings_add_locale_option_name" /> - <Spinner android:id="@+id/user_dictionary_settings_add_dialog_locale" - android:layout_width="match_parent" + android:layout_marginBottom="8dip" + android:layout_marginTop="8dip" + android:inputType="textNoSuggestions" + android:imeOptions="flagNoFullscreen" + android:visibility="gone" /> + <TextView android:id="@+id/user_dictionary_add_locale_label" + style="?android:attr/textAppearanceSmall" + android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_margin="8dip" /> - </LinearLayout> + android:layout_gravity="left|center_vertical" + android:text="@string/user_dict_settings_add_locale_option_name" + android:visibility="gone" /> + <Spinner android:id="@+id/user_dictionary_settings_add_dialog_locale" + android:layout_marginLeft="8dip" + android:layout_marginBottom="8dip" + android:layout_marginTop="8dip" + android:layout_width="wrap_content" + android:layout_gravity="fill_horizontal|center_vertical" + android:visibility="gone" /> + </GridLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" |