From 0ac950542d86c6803b80d0fd73f0508a687d225b Mon Sep 17 00:00:00 2001 From: Jean Chalard Date: Fri, 19 Apr 2013 21:46:14 +0900 Subject: [PATCH] Add hints to some text fields for RTL Having a hint makes sure the cursor is positioned in the right end of the text field by default for both LTR and RTL locales. This fixes the user dictionary "add to dictionary" interface parts, and the "connect to hidden network" interface. Bug: 8654823 Change-Id: I7c83d35734e53da94bb949e362c5260934ef0b76 --- res/layout/user_dictionary_add_word.xml | 1 + res/layout/user_dictionary_add_word_fullscreen.xml | 2 ++ res/layout/wifi_ap_dialog.xml | 1 + res/layout/wifi_config_ui_for_setup_wizard.xml | 1 + res/layout/wifi_dialog.xml | 1 + res/values/strings.xml | 6 ++++++ 6 files changed, 12 insertions(+) diff --git a/res/layout/user_dictionary_add_word.xml b/res/layout/user_dictionary_add_word.xml index d8b869477ac..3624dad52bd 100644 --- a/res/layout/user_dictionary_add_word.xml +++ b/res/layout/user_dictionary_add_word.xml @@ -45,6 +45,7 @@ android:layout_marginStart="8dip" android:layout_marginBottom="8dip" android:layout_marginTop="8dip" + android:hint="@string/user_dict_settings_add_word_hint" android:inputType="textNoSuggestions" android:imeOptions="flagNoFullscreen"> diff --git a/res/layout/user_dictionary_add_word_fullscreen.xml b/res/layout/user_dictionary_add_word_fullscreen.xml index f29c6696a39..b72886f459b 100644 --- a/res/layout/user_dictionary_add_word_fullscreen.xml +++ b/res/layout/user_dictionary_add_word_fullscreen.xml @@ -33,6 +33,7 @@ android:layout_marginStart="8dip" android:layout_marginBottom="8dip" android:layout_marginTop="8dip" + android:hint="@string/user_dict_settings_add_word_hint" android:inputType="textNoSuggestions" android:imeOptions="flagNoFullscreen"> @@ -56,6 +57,7 @@ android:layout_marginStart="8dip" android:layout_marginBottom="8dip" android:layout_marginTop="8dip" + android:hint="@string/user_dict_settings_add_shortcut_hint" android:inputType="textNoSuggestions" android:imeOptions="flagNoFullscreen" /> diff --git a/res/layout/wifi_config_ui_for_setup_wizard.xml b/res/layout/wifi_config_ui_for_setup_wizard.xml index fef10b3f566..143d9ee1c08 100644 --- a/res/layout/wifi_config_ui_for_setup_wizard.xml +++ b/res/layout/wifi_config_ui_for_setup_wizard.xml @@ -86,6 +86,7 @@ android:layout_width="368dip" android:layout_height="wrap_content" android:singleLine="true" + android:hint="@string/wifi_ssid_hint" android:inputType="textNoSuggestions" android:textAppearance="?android:attr/textAppearanceMedium" android:textSize="20sp" /> diff --git a/res/layout/wifi_dialog.xml b/res/layout/wifi_dialog.xml index 7a7d0b03dd1..cd968b13e16 100644 --- a/res/layout/wifi_dialog.xml +++ b/res/layout/wifi_dialog.xml @@ -40,6 +40,7 @@ diff --git a/res/values/strings.xml b/res/values/strings.xml index 32b30a05d80..93f936b100e 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -1385,6 +1385,8 @@ Another WPS session was detected. Please try again in a few minutes. Network SSID + + Enter the SSID Security @@ -2949,6 +2951,10 @@ Shortcut: Language: + + Type a word + + Optional shortcut Edit word