diff --git a/README.md b/README.md index 15e8d973..d46ccde6 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,13 @@ # Traditional T9 TT9 is an IME (Input Method Editor) for Android devices with hardware keypad. It supports multiple languages and predictive text typing. _NOTE: TT9 is not usable on touchscreen-only devices._ -This is a clone of the [original project](https://github.com/Clam-/TraditionalT9) by Clam-. +This is an updated version of the [original project](https://github.com/Clam-/TraditionalT9) by Clam-. ## Building -The recommended way of building is using Android Studio. As the of time of writing this, the current version is Android Studio Chipmunk | 2021.2.1 Patch 1. +The recommended way of building is using Android Studio. As the of time of writing this, the current version is: Android Studio Dolphin | 2021.3.1. ### Building a Debug .apk -If you have not configure Android Studio yet, follow [the official manual](https://developer.android.com/training/basics/firstapp), then follow the simple steps below to get the project running. +If you have not configured Android Studio yet, follow [the official manual](https://developer.android.com/training/basics/firstapp), then follow the simple steps below to get the project running. - _Import the project in Android Studio._ - _Prevent the "Default Activity not found" issue._ The app does not have a default view or a launcher icon. For this reason, you must configure Android Studio not to launch anything after installing, otherwise it will fail with "Default Activity not found" or a similar message. To do so: diff --git a/docs/user-manual.md b/docs/user-manual.md index 64cbb95a..453ec590 100644 --- a/docs/user-manual.md +++ b/docs/user-manual.md @@ -1,7 +1,7 @@ # Traditional T9 TT9 is an IME (Input Method Editor) for Android devices with hardware keypad. It supports multiple languages and predictive text typing. _NOTE: TT9 is not usable on touchscreen-only devices._ -Source code and documentation are available on Github: [https://github.com/sspanak/tt9](https://github.com/sspanak/tt9). +All Source code and documentation are available on Github: [https://github.com/sspanak/tt9](https://github.com/sspanak/tt9). ## Initial Setup In order to use Traditional T9, you need to enable it as an Android keyboard. To do so: @@ -14,25 +14,20 @@ _The actual menu names may vary depending on your Android version and phone._ ### Enabling Predictive Mode With the default settings, it is only possible to type in 123 and ABC modes. In order to enable the Predictive mode, there are additional steps: -- Open the [TT9 Configuration screen](#configuration-options). +- Open the [Configuration screen](#configuration-options). - Select the desired languages. - Load the dictionaries. -_If you don't do the above, nothing will happen when you try to type in Predictive mode._ +_If you don't do the above, there will be no suggestions when typing in Predictive mode._ ## Hotkeys + #### D-pad Up (↑): Select previous word suggestion. #### D-pad Down (↓): Select next word suggestion. -#### Left Soft Key: -Open Traditional T9 Configuration screen. - -#### Right Soft Key: -Backspace. - #### 0 key - In 123 mode: type "0" or hold it to type "+". - In ABC mode: type secondary punctuation or hold to type "0". @@ -44,13 +39,13 @@ Backspace. #### Text Mode Key (Hash/Pound/#): - **Short press:** Cycle input modes (abc → ABC → Predictive → 123) -- **Short press while typing:** Change between UPPERCASE and lowercase. +- **Short press while typing:** Change between UPPERCASE/lowercase. - **Long press:** Select the next language. - **Number-only fields:** Type a "#". Changing the mode is not possible in such fields. #### Other Actions Key (Star/✱): -- **Short press:** Add a word to the dictionary. -- **Long press:** Open Traditional T9 Preferences screen. +- **Short press:** Add a new word to the dictionary. +- **Long press:** Open the Configration screen. #### Backspace Key (Back/↩): - Just deletes text. @@ -60,6 +55,15 @@ Backspace. - **Short Press when there is text:** Some applications, most notably Firefox and Spotify, take full control of the "Back" key. This means, it may function as the application authors intended, instead of as backspace. In such cases, you could use the on-screen backspace instead. Unfortunately, nothing else could be done, because this is a restriction posed by Android. - **Long Press**: Whatever the system default action is (i.e. show running applications list). +## On-screen soft keys +All functionality is available using the keypad, but for convenience, on touchscreen phones or the ones with customizable function keys, you could also use the on-screen soft keys. + +#### Left Soft Key: +Open the [Configuration screen](#configuration-options). + +#### Right Soft Key: +Backspace. + ## Configuration Options On the Configuration screen, you can choose your preferred languages, load a dictionary for Predictive mode or view this manual. diff --git a/res/layout/addwordview.xml b/res/layout/addwordview.xml index f1a0cc1b..6c28c263 100644 --- a/res/layout/addwordview.xml +++ b/res/layout/addwordview.xml @@ -2,14 +2,17 @@ + android:privateImeOptions="io.github.sspanak.tt9.addword=true" + android:importantForAutofill="no"> @@ -22,18 +25,20 @@ android:id="@+id/add_word_add" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_alignParentLeft="true" + android:layout_alignParentStart="true" android:layout_alignParentTop="true" - android:onClick="addWordButton" + android:minWidth="48dp" + android:onClick="addWord" android:text="@string/add_word_add" />