diff --git a/java/res/values-sw600dp/config-per-form-factor.xml b/java/res/values-sw600dp/config-per-form-factor.xml index aa9a05482..0872458d8 100644 --- a/java/res/values-sw600dp/config-per-form-factor.xml +++ b/java/res/values-sw600dp/config-per-form-factor.xml @@ -20,12 +20,12 @@ - false + true - false + true true false - false + true false diff --git a/java/res/values-sw600dp/keyboard_attributes.xml b/java/res/values-sw600dp/keyboard_attributes.xml new file mode 100644 index 000000000..1d77517be --- /dev/null +++ b/java/res/values-sw600dp/keyboard_attributes.xml @@ -0,0 +1,7 @@ + + + 80% + 133% + 48dp + 4dp + \ No newline at end of file diff --git a/java/res/values-sw768dp/config-per-form-factor.xml b/java/res/values-sw768dp/config-per-form-factor.xml index b90fbaea5..fe337341e 100644 --- a/java/res/values-sw768dp/config-per-form-factor.xml +++ b/java/res/values-sw768dp/config-per-form-factor.xml @@ -20,12 +20,12 @@ - false + true - false + true true false - false + true true diff --git a/java/res/values/keyboard_attributes.xml b/java/res/values/keyboard_attributes.xml new file mode 100644 index 000000000..6a38a75d9 --- /dev/null +++ b/java/res/values/keyboard_attributes.xml @@ -0,0 +1,7 @@ + + + 100% + 100% + 0dp + 0dp + \ No newline at end of file diff --git a/java/res/xml-sw600dp-land/kbd_more_keys_keyboard_template.xml b/java/res/xml-sw600dp-land/kbd_more_keys_keyboard_template.xml deleted file mode 100644 index b606dbdf6..000000000 --- a/java/res/xml-sw600dp-land/kbd_more_keys_keyboard_template.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - - - diff --git a/java/res/xml-sw600dp-land/kbd_number.xml b/java/res/xml-sw600dp-land/kbd_number.xml deleted file mode 100644 index de02deebc..000000000 --- a/java/res/xml-sw600dp-land/kbd_number.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - diff --git a/java/res/xml-sw600dp-land/kbd_phone.xml b/java/res/xml-sw600dp-land/kbd_phone.xml deleted file mode 100644 index 6a8acaf35..000000000 --- a/java/res/xml-sw600dp-land/kbd_phone.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - diff --git a/java/res/xml-sw600dp-land/kbd_phone_symbols.xml b/java/res/xml-sw600dp-land/kbd_phone_symbols.xml deleted file mode 100644 index 6314c097b..000000000 --- a/java/res/xml-sw600dp-land/kbd_phone_symbols.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - diff --git a/java/res/xml-sw600dp-land/key_space_3kw.xml b/java/res/xml-sw600dp-land/key_space_3kw.xml deleted file mode 100644 index 10bea62fd..000000000 --- a/java/res/xml-sw600dp-land/key_space_3kw.xml +++ /dev/null @@ -1,71 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/java/res/xml-sw600dp-land/row_qwerty4.xml b/java/res/xml-sw600dp-land/row_qwerty4.xml deleted file mode 100644 index 41300c5bc..000000000 --- a/java/res/xml-sw600dp-land/row_qwerty4.xml +++ /dev/null @@ -1,74 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/java/res/xml-sw600dp-land/rows_qwerty.xml b/java/res/xml-sw600dp-land/rows_qwerty.xml deleted file mode 100644 index 27e8ae92e..000000000 --- a/java/res/xml-sw600dp-land/rows_qwerty.xml +++ /dev/null @@ -1,146 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/java/res/xml-sw600dp/kbd_more_keys_keyboard_template.xml b/java/res/xml-sw600dp/kbd_more_keys_keyboard_template.xml deleted file mode 100644 index cbed0e010..000000000 --- a/java/res/xml-sw600dp/kbd_more_keys_keyboard_template.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - - - diff --git a/java/res/xml-sw600dp/kbd_number.xml b/java/res/xml-sw600dp/kbd_number.xml deleted file mode 100644 index d46a575ef..000000000 --- a/java/res/xml-sw600dp/kbd_number.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - diff --git a/java/res/xml-sw600dp/kbd_phone.xml b/java/res/xml-sw600dp/kbd_phone.xml deleted file mode 100644 index dcfa1af1a..000000000 --- a/java/res/xml-sw600dp/kbd_phone.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - diff --git a/java/res/xml-sw600dp/kbd_phone_symbols.xml b/java/res/xml-sw600dp/kbd_phone_symbols.xml deleted file mode 100644 index 9af3c8aec..000000000 --- a/java/res/xml-sw600dp/kbd_phone_symbols.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - diff --git a/java/res/xml-sw600dp/key_comma.xml b/java/res/xml-sw600dp/key_comma.xml deleted file mode 100644 index 84ac7f981..000000000 --- a/java/res/xml-sw600dp/key_comma.xml +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/java/res/xml-sw600dp/key_period.xml b/java/res/xml-sw600dp/key_period.xml deleted file mode 100644 index 554f7ab07..000000000 --- a/java/res/xml-sw600dp/key_period.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/java/res/xml-sw600dp/key_settings.xml b/java/res/xml-sw600dp/key_settings.xml deleted file mode 100644 index a11efe1a5..000000000 --- a/java/res/xml-sw600dp/key_settings.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - - - - - - diff --git a/java/res/xml-sw600dp/key_space_3kw.xml b/java/res/xml-sw600dp/key_space_3kw.xml deleted file mode 100644 index 0a4b75445..000000000 --- a/java/res/xml-sw600dp/key_space_3kw.xml +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/java/res/xml-sw600dp/key_space_7kw.xml b/java/res/xml-sw600dp/key_space_7kw.xml deleted file mode 100644 index a88d2ffb4..000000000 --- a/java/res/xml-sw600dp/key_space_7kw.xml +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/java/res/xml-sw600dp/key_space_symbols.xml b/java/res/xml-sw600dp/key_space_symbols.xml deleted file mode 100644 index 43270970b..000000000 --- a/java/res/xml-sw600dp/key_space_symbols.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - diff --git a/java/res/xml-sw600dp/key_styles_common.xml b/java/res/xml-sw600dp/key_styles_common.xml deleted file mode 100644 index 448be74e6..000000000 --- a/java/res/xml-sw600dp/key_styles_common.xml +++ /dev/null @@ -1,167 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/java/res/xml-sw600dp/key_styles_enter.xml b/java/res/xml-sw600dp/key_styles_enter.xml deleted file mode 100644 index ac7ff77a4..000000000 --- a/java/res/xml-sw600dp/key_styles_enter.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/java/res/xml-sw600dp/keys_arabic3_left.xml b/java/res/xml-sw600dp/keys_arabic3_left.xml deleted file mode 100644 index baeb98044..000000000 --- a/java/res/xml-sw600dp/keys_arabic3_left.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - diff --git a/java/res/xml-sw600dp/keys_dvorak_123.xml b/java/res/xml-sw600dp/keys_dvorak_123.xml deleted file mode 100644 index 11842f8b6..000000000 --- a/java/res/xml-sw600dp/keys_dvorak_123.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/java/res/xml-sw600dp/keys_exclamation_question.xml b/java/res/xml-sw600dp/keys_exclamation_question.xml deleted file mode 100644 index 3651fddfe..000000000 --- a/java/res/xml-sw600dp/keys_exclamation_question.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - diff --git a/java/res/xml-sw600dp/keys_farsi3_right.xml b/java/res/xml-sw600dp/keys_farsi3_right.xml deleted file mode 100644 index 396a4be26..000000000 --- a/java/res/xml-sw600dp/keys_farsi3_right.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - diff --git a/java/res/xml-sw600dp/keys_pcqwerty2_right3.xml b/java/res/xml-sw600dp/keys_pcqwerty2_right3.xml deleted file mode 100644 index 02e8a971d..000000000 --- a/java/res/xml-sw600dp/keys_pcqwerty2_right3.xml +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/java/res/xml-sw600dp/keys_pcqwerty3_right2.xml b/java/res/xml-sw600dp/keys_pcqwerty3_right2.xml deleted file mode 100644 index a0ad182a9..000000000 --- a/java/res/xml-sw600dp/keys_pcqwerty3_right2.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/java/res/xml-sw600dp/keys_pcqwerty4_right3.xml b/java/res/xml-sw600dp/keys_pcqwerty4_right3.xml deleted file mode 100644 index 05f03f9df..000000000 --- a/java/res/xml-sw600dp/keys_pcqwerty4_right3.xml +++ /dev/null @@ -1,64 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/java/res/xml-sw600dp/row_pcqwerty5.xml b/java/res/xml-sw600dp/row_pcqwerty5.xml deleted file mode 100644 index d0ee90802..000000000 --- a/java/res/xml-sw600dp/row_pcqwerty5.xml +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/java/res/xml-sw600dp/row_qwerty4.xml b/java/res/xml-sw600dp/row_qwerty4.xml deleted file mode 100644 index 7eb6da8a9..000000000 --- a/java/res/xml-sw600dp/row_qwerty4.xml +++ /dev/null @@ -1,74 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/java/res/xml-sw600dp/rowkeys_dvorak3.xml b/java/res/xml-sw600dp/rowkeys_dvorak3.xml deleted file mode 100644 index ce98a9733..000000000 --- a/java/res/xml-sw600dp/rowkeys_dvorak3.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - - - - - - diff --git a/java/res/xml-sw600dp/rowkeys_pcqwerty1.xml b/java/res/xml-sw600dp/rowkeys_pcqwerty1.xml deleted file mode 100644 index 094d1c6ab..000000000 --- a/java/res/xml-sw600dp/rowkeys_pcqwerty1.xml +++ /dev/null @@ -1,118 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/java/res/xml-sw600dp/rows_arabic.xml b/java/res/xml-sw600dp/rows_arabic.xml deleted file mode 100644 index df2b1891f..000000000 --- a/java/res/xml-sw600dp/rows_arabic.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/java/res/xml-sw600dp/rows_armenian_phonetic.xml b/java/res/xml-sw600dp/rows_armenian_phonetic.xml deleted file mode 100644 index 188c841a1..000000000 --- a/java/res/xml-sw600dp/rows_armenian_phonetic.xml +++ /dev/null @@ -1,63 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/java/res/xml-sw600dp/rows_azerty.xml b/java/res/xml-sw600dp/rows_azerty.xml deleted file mode 100644 index d047c729f..000000000 --- a/java/res/xml-sw600dp/rows_azerty.xml +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/java/res/xml-sw600dp/rows_bengali.xml b/java/res/xml-sw600dp/rows_bengali.xml deleted file mode 100644 index 9dfe32139..000000000 --- a/java/res/xml-sw600dp/rows_bengali.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/java/res/xml-sw600dp/rows_bengali_akkhor.xml b/java/res/xml-sw600dp/rows_bengali_akkhor.xml deleted file mode 100644 index d51cbb296..000000000 --- a/java/res/xml-sw600dp/rows_bengali_akkhor.xml +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/java/res/xml-sw600dp/rows_bulgarian.xml b/java/res/xml-sw600dp/rows_bulgarian.xml deleted file mode 100644 index e575ead56..000000000 --- a/java/res/xml-sw600dp/rows_bulgarian.xml +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/java/res/xml-sw600dp/rows_bulgarian_bds.xml b/java/res/xml-sw600dp/rows_bulgarian_bds.xml deleted file mode 100644 index e290a8c18..000000000 --- a/java/res/xml-sw600dp/rows_bulgarian_bds.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - - - - - - - - - - - - - - - diff --git a/java/res/xml-sw600dp/rows_colemak.xml b/java/res/xml-sw600dp/rows_colemak.xml deleted file mode 100644 index f3f32d159..000000000 --- a/java/res/xml-sw600dp/rows_colemak.xml +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/java/res/xml-sw600dp/rows_dvorak.xml b/java/res/xml-sw600dp/rows_dvorak.xml deleted file mode 100644 index 9fb3e649d..000000000 --- a/java/res/xml-sw600dp/rows_dvorak.xml +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/java/res/xml-sw600dp/rows_east_slavic.xml b/java/res/xml-sw600dp/rows_east_slavic.xml deleted file mode 100644 index 8c08bbff6..000000000 --- a/java/res/xml-sw600dp/rows_east_slavic.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - - - - - - - - - - - - - - - diff --git a/java/res/xml-sw600dp/rows_farsi.xml b/java/res/xml-sw600dp/rows_farsi.xml deleted file mode 100644 index 2849df58a..000000000 --- a/java/res/xml-sw600dp/rows_farsi.xml +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/java/res/xml-sw600dp/rows_georgian.xml b/java/res/xml-sw600dp/rows_georgian.xml deleted file mode 100644 index 7874c7531..000000000 --- a/java/res/xml-sw600dp/rows_georgian.xml +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/java/res/xml-sw600dp/rows_greek.xml b/java/res/xml-sw600dp/rows_greek.xml deleted file mode 100644 index b2ed3e3a2..000000000 --- a/java/res/xml-sw600dp/rows_greek.xml +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/java/res/xml-sw600dp/rows_hebrew.xml b/java/res/xml-sw600dp/rows_hebrew.xml deleted file mode 100644 index fe582aff6..000000000 --- a/java/res/xml-sw600dp/rows_hebrew.xml +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/java/res/xml-sw600dp/rows_hindi.xml b/java/res/xml-sw600dp/rows_hindi.xml deleted file mode 100644 index 7608acf7a..000000000 --- a/java/res/xml-sw600dp/rows_hindi.xml +++ /dev/null @@ -1,52 +0,0 @@ - - - - - - - - - - - - - - - - - - - - diff --git a/java/res/xml-sw600dp/rows_hindi_compact.xml b/java/res/xml-sw600dp/rows_hindi_compact.xml deleted file mode 100644 index d4a247e4e..000000000 --- a/java/res/xml-sw600dp/rows_hindi_compact.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/java/res/xml-sw600dp/rows_kannada.xml b/java/res/xml-sw600dp/rows_kannada.xml deleted file mode 100644 index dc755a14c..000000000 --- a/java/res/xml-sw600dp/rows_kannada.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/java/res/xml-sw600dp/rows_khmer.xml b/java/res/xml-sw600dp/rows_khmer.xml deleted file mode 100644 index 3af0b2077..000000000 --- a/java/res/xml-sw600dp/rows_khmer.xml +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/java/res/xml-sw600dp/rows_lao.xml b/java/res/xml-sw600dp/rows_lao.xml deleted file mode 100644 index 77a12c264..000000000 --- a/java/res/xml-sw600dp/rows_lao.xml +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/java/res/xml-sw600dp/rows_malayalam.xml b/java/res/xml-sw600dp/rows_malayalam.xml deleted file mode 100644 index f7f425f20..000000000 --- a/java/res/xml-sw600dp/rows_malayalam.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/java/res/xml-sw600dp/rows_marathi.xml b/java/res/xml-sw600dp/rows_marathi.xml deleted file mode 100644 index f127e1a86..000000000 --- a/java/res/xml-sw600dp/rows_marathi.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/java/res/xml-sw600dp/rows_mongolian.xml b/java/res/xml-sw600dp/rows_mongolian.xml deleted file mode 100644 index 39e67eb0f..000000000 --- a/java/res/xml-sw600dp/rows_mongolian.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - - - - - - - - - - - - - - - diff --git a/java/res/xml-sw600dp/rows_nepali_romanized.xml b/java/res/xml-sw600dp/rows_nepali_romanized.xml deleted file mode 100644 index 1f4eb5a35..000000000 --- a/java/res/xml-sw600dp/rows_nepali_romanized.xml +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/java/res/xml-sw600dp/rows_nepali_traditional.xml b/java/res/xml-sw600dp/rows_nepali_traditional.xml deleted file mode 100644 index 7b0678bf2..000000000 --- a/java/res/xml-sw600dp/rows_nepali_traditional.xml +++ /dev/null @@ -1,52 +0,0 @@ - - - - - - - - - - - - - - - - - - - - diff --git a/java/res/xml-sw600dp/rows_nordic.xml b/java/res/xml-sw600dp/rows_nordic.xml deleted file mode 100644 index f2242dd95..000000000 --- a/java/res/xml-sw600dp/rows_nordic.xml +++ /dev/null @@ -1,63 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - diff --git a/java/res/xml-sw600dp/rows_number_normal.xml b/java/res/xml-sw600dp/rows_number_normal.xml deleted file mode 100644 index c364a33c6..000000000 --- a/java/res/xml-sw600dp/rows_number_normal.xml +++ /dev/null @@ -1,163 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/java/res/xml-sw600dp/rows_number_password.xml b/java/res/xml-sw600dp/rows_number_password.xml deleted file mode 100644 index 543cf7d77..000000000 --- a/java/res/xml-sw600dp/rows_number_password.xml +++ /dev/null @@ -1,81 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/java/res/xml-sw600dp/rows_pcqwerty.xml b/java/res/xml-sw600dp/rows_pcqwerty.xml deleted file mode 100644 index 2075c62c0..000000000 --- a/java/res/xml-sw600dp/rows_pcqwerty.xml +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/java/res/xml-sw600dp/rows_phone.xml b/java/res/xml-sw600dp/rows_phone.xml deleted file mode 100644 index 9a9c9b9a2..000000000 --- a/java/res/xml-sw600dp/rows_phone.xml +++ /dev/null @@ -1,128 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/java/res/xml-sw600dp/rows_qwerty.xml b/java/res/xml-sw600dp/rows_qwerty.xml deleted file mode 100644 index 53ac2887a..000000000 --- a/java/res/xml-sw600dp/rows_qwerty.xml +++ /dev/null @@ -1,149 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/java/res/xml-sw600dp/rows_qwertz.xml b/java/res/xml-sw600dp/rows_qwertz.xml deleted file mode 100644 index efd534bb5..000000000 --- a/java/res/xml-sw600dp/rows_qwertz.xml +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/java/res/xml-sw600dp/rows_serbian_qwertz.xml b/java/res/xml-sw600dp/rows_serbian_qwertz.xml deleted file mode 100644 index 5fd48c617..000000000 --- a/java/res/xml-sw600dp/rows_serbian_qwertz.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - - - - - - - - diff --git a/java/res/xml-sw600dp/rows_sinhala.xml b/java/res/xml-sw600dp/rows_sinhala.xml deleted file mode 100644 index 2fe89792e..000000000 --- a/java/res/xml-sw600dp/rows_sinhala.xml +++ /dev/null @@ -1,52 +0,0 @@ - - - - - - - - - - - - - - - - - - - - diff --git a/java/res/xml-sw600dp/rows_south_slavic.xml b/java/res/xml-sw600dp/rows_south_slavic.xml deleted file mode 100644 index cfe5c5757..000000000 --- a/java/res/xml-sw600dp/rows_south_slavic.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - - - - - - - - - - - - - - - diff --git a/java/res/xml-sw600dp/rows_spanish.xml b/java/res/xml-sw600dp/rows_spanish.xml deleted file mode 100644 index 27be76c9d..000000000 --- a/java/res/xml-sw600dp/rows_spanish.xml +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/java/res/xml-sw600dp/rows_swiss.xml b/java/res/xml-sw600dp/rows_swiss.xml deleted file mode 100644 index e057f5fba..000000000 --- a/java/res/xml-sw600dp/rows_swiss.xml +++ /dev/null @@ -1,63 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - diff --git a/java/res/xml-sw600dp/rows_symbols.xml b/java/res/xml-sw600dp/rows_symbols.xml deleted file mode 100644 index 664a87e91..000000000 --- a/java/res/xml-sw600dp/rows_symbols.xml +++ /dev/null @@ -1,75 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/java/res/xml-sw600dp/rows_symbols_shift.xml b/java/res/xml-sw600dp/rows_symbols_shift.xml deleted file mode 100644 index ac9ca2eec..000000000 --- a/java/res/xml-sw600dp/rows_symbols_shift.xml +++ /dev/null @@ -1,77 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/java/res/xml-sw600dp/rows_tamil.xml b/java/res/xml-sw600dp/rows_tamil.xml deleted file mode 100644 index 569a634c3..000000000 --- a/java/res/xml-sw600dp/rows_tamil.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/java/res/xml-sw600dp/rows_telugu.xml b/java/res/xml-sw600dp/rows_telugu.xml deleted file mode 100644 index c782969f8..000000000 --- a/java/res/xml-sw600dp/rows_telugu.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/java/res/xml-sw600dp/rows_thai.xml b/java/res/xml-sw600dp/rows_thai.xml deleted file mode 100644 index df3cca7b0..000000000 --- a/java/res/xml-sw600dp/rows_thai.xml +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/java/res/xml-sw600dp/rows_uzbek.xml b/java/res/xml-sw600dp/rows_uzbek.xml deleted file mode 100644 index 06e51a00d..000000000 --- a/java/res/xml-sw600dp/rows_uzbek.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/java/src/org/futo/inputmethod/keyboard/MoreKeysKeyboard.java b/java/src/org/futo/inputmethod/keyboard/MoreKeysKeyboard.java index 60557474c..ee44fbbad 100644 --- a/java/src/org/futo/inputmethod/keyboard/MoreKeysKeyboard.java +++ b/java/src/org/futo/inputmethod/keyboard/MoreKeysKeyboard.java @@ -55,6 +55,7 @@ public final class MoreKeysKeyboard extends Keyboard { public MoreKeysKeyboardParams() { super(); + mIsMainKeyboard = false; } /** diff --git a/java/src/org/futo/inputmethod/keyboard/PointerTracker.java b/java/src/org/futo/inputmethod/keyboard/PointerTracker.java index b29ee8d15..6ef15300e 100644 --- a/java/src/org/futo/inputmethod/keyboard/PointerTracker.java +++ b/java/src/org/futo/inputmethod/keyboard/PointerTracker.java @@ -696,6 +696,8 @@ public final class PointerTracker implements PointerTrackerQueue.Element, key = onDownKey(x, y, eventTime); } + if(key == null) return; + startRepeatKey(key); startLongPressTimer(key); setPressedKeyGraphics(key, eventTime); diff --git a/java/src/org/futo/inputmethod/keyboard/internal/KeyboardBuilder.java b/java/src/org/futo/inputmethod/keyboard/internal/KeyboardBuilder.java index 0b28d7c17..65125cbdf 100644 --- a/java/src/org/futo/inputmethod/keyboard/internal/KeyboardBuilder.java +++ b/java/src/org/futo/inputmethod/keyboard/internal/KeyboardBuilder.java @@ -256,7 +256,18 @@ public class KeyboardBuilder { try { final KeyboardParams params = mParams; - final int height = (int) (params.mId.mHeight * mProvider.getKeyboardHeightMultiplier()); + int extraSidePadding = 0; + int extraBottomPadding = 0; + float heightMultiplier = 1.0f; + float gapMultiplier = 1.0f; + if(params.mIsMainKeyboard) { + extraSidePadding = mResources.getDimensionPixelSize(R.dimen.keyboardSidePaddingAddl); + extraBottomPadding = mResources.getDimensionPixelSize(R.dimen.keyboardBottomPaddingAddl); + heightMultiplier = mProvider.getKeyboardHeightMultiplier() * mResources.getFraction(R.fraction.keyboardHeightMultiplierAddl, 1, 1); + gapMultiplier = mResources.getFraction(R.fraction.keyboardGapMultiplierAddl, 1, 1); + } + + final int height = (int) (params.mId.mHeight * heightMultiplier); final int width = params.mId.mWidth; params.mOccupiedHeight = height; params.mOccupiedWidth = width; @@ -264,24 +275,25 @@ public class KeyboardBuilder { R.styleable.Keyboard_keyboardTopPadding, height, height, 0); params.mBottomPadding = (int)(keyboardAttr.getFraction( R.styleable.Keyboard_keyboardBottomPadding, height, height, 0) - ); + ) + extraBottomPadding; + params.mLeftPadding = (int)keyboardAttr.getFraction( - R.styleable.Keyboard_keyboardLeftPadding, width, width, 0); + R.styleable.Keyboard_keyboardLeftPadding, width, width, 0) + extraSidePadding; params.mRightPadding = (int)keyboardAttr.getFraction( - R.styleable.Keyboard_keyboardRightPadding, width, width, 0); + R.styleable.Keyboard_keyboardRightPadding, width, width, 0) + extraSidePadding; final int baseWidth = params.mOccupiedWidth - params.mLeftPadding - params.mRightPadding; params.mBaseWidth = baseWidth; params.mDefaultKeyWidth = (int)keyAttr.getFraction(R.styleable.Keyboard_Key_keyWidth, baseWidth, baseWidth, baseWidth / DEFAULT_KEYBOARD_COLUMNS); - params.mHorizontalGap = (int)keyboardAttr.getFraction( - R.styleable.Keyboard_horizontalGap, baseWidth, baseWidth, 0); + params.mHorizontalGap = (int)(keyboardAttr.getFraction( + R.styleable.Keyboard_horizontalGap, baseWidth, baseWidth, 0) * gapMultiplier); // TODO: Fix keyboard geometry calculation clearer. Historically vertical gap between // rows are determined based on the entire keyboard height including top and bottom // paddings. - params.mVerticalGap = (int)keyboardAttr.getFraction( - R.styleable.Keyboard_verticalGap, height, height, 0); + params.mVerticalGap = (int)(keyboardAttr.getFraction( + R.styleable.Keyboard_verticalGap, height, height, 0) * gapMultiplier); final int baseHeight = params.mOccupiedHeight - params.mTopPadding - params.mBottomPadding + params.mVerticalGap; params.mBaseHeight = baseHeight; diff --git a/java/src/org/futo/inputmethod/keyboard/internal/KeyboardParams.java b/java/src/org/futo/inputmethod/keyboard/internal/KeyboardParams.java index b160928bb..87de4c760 100644 --- a/java/src/org/futo/inputmethod/keyboard/internal/KeyboardParams.java +++ b/java/src/org/futo/inputmethod/keyboard/internal/KeyboardParams.java @@ -34,6 +34,8 @@ public class KeyboardParams { public KeyboardId mId; public int mThemeId; + public boolean mIsMainKeyboard = true; + /** Total height and width of the keyboard, including the paddings and keys */ public int mOccupiedHeight; public int mOccupiedWidth; diff --git a/native/jni/src/suggest/policyimpl/gesture/swipe_weighting.h b/native/jni/src/suggest/policyimpl/gesture/swipe_weighting.h index 765bf499a..f97447211 100644 --- a/native/jni/src/suggest/policyimpl/gesture/swipe_weighting.h +++ b/native/jni/src/suggest/policyimpl/gesture/swipe_weighting.h @@ -6,6 +6,8 @@ #include "suggest/core/policy/weighting.h" #include "suggest/policyimpl/typing/scoring_params.h" +#define DEBUG_SWIPE false + namespace util { static AK_FORCE_INLINE int getDistanceBetweenPoints(const latinime::DicTraverseSession *const traverseSession, int codePoint, int index) { auto proximityInfoState = traverseSession->getProximityInfoState(0); @@ -14,8 +16,8 @@ namespace util { int py = proximityInfoState->getInputY(index); int keyIdx = proximityInfo->getKeyIndexOf(latinime::CharUtils::toBaseLowerCase(codePoint)); - int kx = proximityInfo->getSweetSpotCenterXAt(keyIdx); - int ky = proximityInfo->getSweetSpotCenterYAt(keyIdx); + int kx = proximityInfo->getKeyCenterXOfKeyIdG(keyIdx, NOT_A_COORDINATE, false); + int ky = proximityInfo->getKeyCenterYOfKeyIdG(keyIdx, NOT_A_COORDINATE, false); return sqrtf(latinime::GeometryUtils::getDistanceSq(px, py, kx, ky)); } @@ -54,8 +56,8 @@ namespace util { int l1y = proximityInfoState->getInputY(index1); int keyIdx = proximityInfo->getKeyIndexOf(latinime::CharUtils::toBaseLowerCase(codePoint)); - int px = proximityInfo->getSweetSpotCenterXAt(keyIdx); - int py = proximityInfo->getSweetSpotCenterYAt(keyIdx); + int px = proximityInfo->getKeyCenterXOfKeyIdG(keyIdx, NOT_A_COORDINATE, false); + int py = proximityInfo->getKeyCenterYOfKeyIdG(keyIdx, NOT_A_COORDINATE, false); return findMinimumPointDistance(px, py, l0x, l0y, l1x, l1y); } @@ -68,10 +70,10 @@ namespace util { int keyIdx0 = proximityInfo->getKeyIndexOf(latinime::CharUtils::toBaseLowerCase(codePoint0)); int keyIdx1 = proximityInfo->getKeyIndexOf(latinime::CharUtils::toBaseLowerCase(codePoint1)); - int l0x = proximityInfo->getSweetSpotCenterXAt(keyIdx0); - int l0y = proximityInfo->getSweetSpotCenterYAt(keyIdx0); - int l1x = proximityInfo->getSweetSpotCenterXAt(keyIdx1); - int l1y = proximityInfo->getSweetSpotCenterYAt(keyIdx1); + int l0x = proximityInfo->getKeyCenterXOfKeyIdG(keyIdx0, NOT_A_COORDINATE, false); + int l0y = proximityInfo->getKeyCenterYOfKeyIdG(keyIdx0, NOT_A_COORDINATE, false); + int l1x = proximityInfo->getKeyCenterXOfKeyIdG(keyIdx1, NOT_A_COORDINATE, false); + int l1y = proximityInfo->getKeyCenterYOfKeyIdG(keyIdx1, NOT_A_COORDINATE, false); return findMinimumPointDistance(px, py, l0x, l0y, l1x, l1y); } @@ -91,11 +93,11 @@ namespace util { const int ki_0 = traverseSession->getProximityInfo()->getKeyIndexOf(latinime::CharUtils::toBaseLowerCase(codePoint0)); const int ki_1 = traverseSession->getProximityInfo()->getKeyIndexOf(latinime::CharUtils::toBaseLowerCase(codePoint1)); - const float l0x = traverseSession->getProximityInfo()->getSweetSpotCenterXAt(ki_0); - const float l0y = traverseSession->getProximityInfo()->getSweetSpotCenterYAt(ki_0); + const float l0x = traverseSession->getProximityInfo()->getKeyCenterXOfKeyIdG(ki_0, NOT_A_COORDINATE, false); + const float l0y = traverseSession->getProximityInfo()->getKeyCenterYOfKeyIdG(ki_0, NOT_A_COORDINATE, false); - const float l1x = traverseSession->getProximityInfo()->getSweetSpotCenterXAt(ki_1); - const float l1y = traverseSession->getProximityInfo()->getSweetSpotCenterYAt(ki_1); + const float l1x = traverseSession->getProximityInfo()->getKeyCenterXOfKeyIdG(ki_1, NOT_A_COORDINATE, false); + const float l1y = traverseSession->getProximityInfo()->getKeyCenterYOfKeyIdG(ki_1, NOT_A_COORDINATE, false); for(int j = lowerLimit; j < upperLimit; j++) { const float distance = getDistanceCodePointLine(traverseSession, codePoint0, codePoint1, j); @@ -159,9 +161,10 @@ public: traverseSession->getInputSize() - 1); if(distance > (distanceThreshold * 128.0f)) { - //AKLOGI("Terminal spatial for %c:%c fails due to exceeding distance", (parentDicNode != nullptr) ? (char)(parentDicNode->getNodeCodePoint()) : '?', (char)codePoint); - //dicNode->dump("TERMINAL"); - +#if(DEBUG_SWIPE) + AKLOGI("Terminal spatial for %c:%c fails due to exceeding distance", (parentDicNode != nullptr) ? (char)(parentDicNode->getNodeCodePoint()) : '?', (char)codePoint); + dicNode->dump("TERMINAL"); +#endif return MAX_VALUE_FOR_WEIGHTING; } @@ -188,12 +191,18 @@ public: traverseSession, codePoint0, codePoint1, lowerLimit, upperLimit, threshold); totalDistance += pow(extraDistance, 1.8f) * 0.1f; +#if(DEBUG_SWIPE) + AKLOGI("Terminal spatial for %c:%c - %d:%d : extra %.2f %.2f", (char)codePoint0, (char)codePoint1, lowerLimit, upperLimit, distance, extraDistance); + dicNode->dump("TERMINAL"); +#endif } else { +#if(DEBUG_SWIPE) + AKLOGI("Terminal spatial is max due to NOT_A_CODE_POINT"); + dicNode->dump("TERMINAL"); +#endif totalDistance += MAX_VALUE_FOR_WEIGHTING; } - //AKLOGI("Terminal spatial for %c:%c - %d:%d : extra %.2f %.2f", (char)codePoint0, (char)codePoint1, lowerLimit, upperLimit, distance, extraDistance); - //dicNode->dump("TERMINAL"); return totalDistance; } else { @@ -234,6 +243,10 @@ public: return distance; } else { +#if(DEBUG_SWIPE) + AKLOGI("Culled %c too large first letter distance %.2f, over threshold %.2f", (char)codePoint, distance, distanceThreshold); + dicNode->dump("CULLED"); +#endif return MAX_VALUE_FOR_WEIGHTING; } } else if(parentDicNode != nullptr && parentDicNode->getNodeCodePoint() == codePoint) { @@ -266,13 +279,17 @@ public: const float keyThreshold = (80.0f * distanceThreshold); - //AKLOGI("commence search for %c", (char)codePoint); +#if(DEBUG_SWIPE) + AKLOGI("commence search for %c", (char)codePoint); +#endif for (int i = inputIndex; i < swipeLength; i++) { if (i == 0) continue; const float distance = util::getDistanceLine(traverseSession, codePoint, i - 1, i); - //AKLOGI("[%c:%d] distance %.2f, min %.2f. thresh %.2f", (char)codePoint, i, distance, minEdgeDistance, keyThreshold); +#if(DEBUG_SWIPE) + AKLOGI("[%c:%d] distance %.2f, min %.2f. thresh %.2f", (char)codePoint, i, distance, minEdgeDistance, keyThreshold); +#endif if (distance < minEdgeDistance) { if(minEdgeIndex != -1) headedTowardsCharacterYet = true; minEdgeDistance = distance; @@ -280,7 +297,10 @@ public: } if (((distance > minEdgeDistance) || (i >= (swipeLength - 1))) && (minEdgeDistance < keyThreshold) && headedTowardsCharacterYet) { - //AKLOGI("found!"); +#if(DEBUG_SWIPE) + AKLOGI("found!"); +#endif + found = true; break; } @@ -309,8 +329,10 @@ public: threshold); if (punishment >= MAX_VALUE_FOR_WEIGHTING) { - //AKLOGI("Culled due to too large distance (%.2f, %.2f)", totalDistance, punishment); - //dicNode->dump("CULLED"); +#if(DEBUG_SWIPE) + AKLOGI("Culled due to too large distance (%.2f, %.2f)", totalDistance, punishment); + dicNode->dump("CULLED"); +#endif return MAX_VALUE_FOR_WEIGHTING; } @@ -324,8 +346,10 @@ public: return totalDistance; } else { - //AKLOGI("Culled due to not found or nullptr parent %p %d %.2f. inputIndex is %d and swipeLength is %d", parentDicNode, found, minEdgeDistance, inputIndex, swipeLength); - //dicNode->dump("CULLED"); +#if(DEBUG_SWIPE) + AKLOGI("Culled due to not found or nullptr parent %p %d %.2f. inputIndex is %d and swipeLength is %d", parentDicNode, found, minEdgeDistance, inputIndex, swipeLength); + dicNode->dump("CULLED"); +#endif } if(parentDicNode == nullptr) {