added a new screen, in the Settings, for deleting added words
This commit is contained in:
parent
5a43fba3d5
commit
322774ab45
30 changed files with 477 additions and 26 deletions
28
app/src/main/res/layout/pref_deletable_word.xml
Normal file
28
app/src/main/res/layout/pref_deletable_word.xml
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:paddingHorizontal="@dimen/pref_padding_horizontal"
|
||||
android:paddingVertical="@dimen/pref_padding_vertical"
|
||||
app:layout_anchorGravity="center_horizontal">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingEnd="15dp"
|
||||
android:text="✕"
|
||||
android:textAppearance="@android:style/TextAppearance.DeviceDefault.Widget.TextView"
|
||||
android:textSize="@dimen/soft_key_icon_size"
|
||||
tools:ignore="HardcodedText" />
|
||||
|
||||
<TextView
|
||||
android:id="@android:id/title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAppearance="@android:style/TextAppearance.DeviceDefault.Widget.TextView"
|
||||
android:textSize="@dimen/pref_text_size"
|
||||
tools:text="Lorem" />
|
||||
</LinearLayout>
|
||||
33
app/src/main/res/layout/pref_input_text.xml
Normal file
33
app/src/main/res/layout/pref_input_text.xml
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:descendantFocusability="afterDescendants"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingHorizontal="@dimen/pref_padding_horizontal"
|
||||
android:paddingVertical="@dimen/pref_padding_vertical">
|
||||
|
||||
<TextView
|
||||
android:id="@android:id/title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:labelFor="@id/input_text_input_field"
|
||||
android:text="?android:title" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/input_text_input_field"
|
||||
android:importantForAutofill="no"
|
||||
android:inputType="text"
|
||||
android:focusable="true"
|
||||
android:focusableInTouchMode="true"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="match_parent"
|
||||
android:textSize="@dimen/pref_text_size" />
|
||||
|
||||
<TextView android:id="@android:id/summary"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="wrap_content"
|
||||
android:textAppearance="@style/TextAppearance.AppCompat.Caption"
|
||||
android:textSize="@dimen/pref_summary_size" />
|
||||
|
||||
</LinearLayout>
|
||||
Loading…
Add table
Add a link
Reference in a new issue