1
0
Fork 0
tt9/res/layout/addwordview.xml
sspanak e82ae8eaed added right-to-left UI support
* added right-to-left support in the Settings and the Add Word dialog

* standartized the Add Word dialog layout
2023-03-13 10:41:11 +02:00

51 lines
1.5 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="wrap_content"
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:layout_marginStart="10dp"
android:layout_marginTop="10dp"
android:layout_marginEnd="10dp"
android:hint="@string/add_word_field_placeholder"
android:imeOptions="actionSend"
android:importantForAutofill="no"
android:inputType="text"
android:maxWidth="480dp"
android:minHeight="48dp"
android:privateImeOptions="io.github.sspanak.tt9.addword=true">
<requestFocus />
</EditText>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="end">
<Button
android:id="@+id/add_word_cancel"
style="@style/Widget.AppCompat.Button.Borderless.Colored"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:minWidth="48dp"
android:onClick="cancelAddingWord"
android:text="@android:string/cancel" />
<Button
android:id="@+id/add_word_add"
style="@style/Widget.AppCompat.Button.Borderless.Colored"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:minWidth="48dp"
android:onClick="addWord"
android:text="@string/add_word_add" />
</LinearLayout>
</LinearLayout>