Adjust the size of bottom row of keys for email mode. Fix for 2099889
Also recreate the keyboards when locale changes.
diff --git a/res/xml/kbd_qwerty.xml b/res/xml/kbd_qwerty.xml
index 41625f2..2fa6c90 100755
--- a/res/xml/kbd_qwerty.xml
+++ b/res/xml/kbd_qwerty.xml
@@ -127,7 +127,8 @@
android:popupKeyboard="@xml/kbd_popup_template"
android:popupCharacters="_"
android:keyWidth="20%p" android:keyEdgeFlags="left"/>
- <Key android:keyLabel=".com" android:keyOutputText=".com"
+ <Key android:keyLabel="@string/popular_domain_0"
+ android:keyOutputText="@string/popular_domain_0"
android:popupKeyboard="@xml/popup_domains"
android:keyWidth="15%p"/>
<Key android:keyLabel="/" android:keyWidth="15%p"/>
@@ -146,13 +147,16 @@
android:popupKeyboard="@xml/kbd_popup_template"
android:popupCharacters="_"
android:keyWidth="20%p" android:keyEdgeFlags="left"/>
- <Key android:keyLabel="," android:keyWidth="10%p" />
- <Key android:keyLabel="\@" android:keyWidth="20%p"/>
+ <Key android:keyLabel="\@" android:keyWidth="15%p"/>
+ <Key android:keyLabel="@string/popular_domain_0"
+ android:keyOutputText="@string/popular_domain_0"
+ android:popupKeyboard="@xml/popup_domains"
+ android:keyWidth="15%p"/>
<Key android:codes="32" android:keyIcon="@drawable/sym_keyboard_space"
android:iconPreview="@drawable/sym_keyboard_feedback_space"
- android:keyWidth="20%p" android:isRepeatable="true"/>
+ android:keyWidth="15%p" android:isRepeatable="true"/>
<Key android:keyLabel="." android:popupKeyboard="@xml/popup_punctuation"
- android:keyWidth="10%p"/>
+ android:keyWidth="15%p"/>
<Key android:codes="10" android:keyIcon="@drawable/sym_keyboard_return"
android:iconPreview="@drawable/sym_keyboard_feedback_return"
android:keyWidth="20%p" android:keyEdgeFlags="right"/>
diff --git a/res/xml/popup_domains.xml b/res/xml/popup_domains.xml
index 5c86386..b733fe2 100644
--- a/res/xml/popup_domains.xml
+++ b/res/xml/popup_domains.xml
@@ -26,9 +26,13 @@
>
<Row android:rowEdgeFlags="top|bottom">
- <Key android:keyLabel=".net" android:keyOutputText=".net" android:keyEdgeFlags="left" />
- <Key android:keyLabel=".org" android:keyOutputText=".org"/>
- <Key android:keyLabel=".gov" android:keyOutputText=".gov"/>
- <Key android:keyLabel=".tv" android:keyOutputText=".tv" android:keyEdgeFlags="right" />
+ <Key android:keyLabel="@string/popular_domain_1"
+ android:keyOutputText="@string/popular_domain_1" android:keyEdgeFlags="left" />
+ <Key android:keyLabel="@string/popular_domain_2"
+ android:keyOutputText="@string/popular_domain_2"/>
+ <Key android:keyLabel="@string/popular_domain_3"
+ android:keyOutputText="@string/popular_domain_3"/>
+ <Key android:keyLabel="@string/popular_domain_4"
+ android:keyOutputText="@string/popular_domain_4" android:keyEdgeFlags="right" />
</Row>
</Keyboard>