1
0
Fork 0
tt9/res/layout/addwordview.xml
Dimo Karaivanov 8d85215444
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
2022-10-11 10:53:03 +03:00

46 lines
1.3 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<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:importantForAutofill="no">
<requestFocus />
</EditText>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<Button
android:id="@+id/add_word_add"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
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_alignParentTop="true"
android:layout_alignParentEnd="true"
android:minWidth="48dp"
android:onClick="cancelAddingWord"
android:text="@android:string/cancel" />
</RelativeLayout>
</LinearLayout>