Restore Add word (#73)
* adding words to the dictionary is possible again * removed some unused code * updated Readme files * special key handlers now validate the input mode themselves * improved language validation and error handling here and there
This commit is contained in:
parent
78b6681812
commit
8d85215444
18 changed files with 195 additions and 159 deletions
|
|
@ -2,14 +2,17 @@
|
|||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:paddingHorizontal="6dp"
|
||||
android:orientation="vertical" >
|
||||
|
||||
<EditText
|
||||
android:id="@+id/add_word_text"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginVertical="4dp"
|
||||
android:inputType="text"
|
||||
android:privateImeOptions="io.github.sspanak.tt9.addword=true" >
|
||||
android:privateImeOptions="io.github.sspanak.tt9.addword=true"
|
||||
android:importantForAutofill="no">
|
||||
|
||||
<requestFocus />
|
||||
</EditText>
|
||||
|
|
@ -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" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/add_word_cancel"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_alignParentTop="true"
|
||||
android:onClick="cancelButton"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:minWidth="48dp"
|
||||
android:onClick="cancelAddingWord"
|
||||
android:text="@android:string/cancel" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue