diff options
author | Stefan Niedermann <info@niedermann.it> | 2022-11-04 13:46:54 +0300 |
---|---|---|
committer | Stefan Niedermann <info@niedermann.it> | 2022-11-12 11:02:24 +0300 |
commit | 35a378b845ba8d9f6cd3b752701fcb06a35e1633 (patch) | |
tree | 1aaaeb817a63a86ae1791fb1d3c6ee5f5aa67ec4 /app/src/main/res/layout/dialog_change_category.xml | |
parent | 20bb9481300d02baf9e7f286717e2ce6b3140d90 (diff) |
Material 3: Navbar highlighting, TextInputLayouts in dialogs, Buttons
Signed-off-by: Stefan Niedermann <info@niedermann.it>
Diffstat (limited to 'app/src/main/res/layout/dialog_change_category.xml')
-rw-r--r-- | app/src/main/res/layout/dialog_change_category.xml | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/app/src/main/res/layout/dialog_change_category.xml b/app/src/main/res/layout/dialog_change_category.xml index 86243c23..bdd19c88 100644 --- a/app/src/main/res/layout/dialog_change_category.xml +++ b/app/src/main/res/layout/dialog_change_category.xml @@ -8,13 +8,27 @@ android:orientation="vertical" android:padding="?attr/dialogPreferredPadding"> - <EditText - android:id="@+id/search" + <com.google.android.material.textfield.TextInputLayout + android:id="@+id/inputWrapper" + style="@style/textInputLayoutStyle" android:layout_width="match_parent" android:layout_height="wrap_content" + android:layout_marginBottom="@dimen/spacer_1x" android:hint="@string/change_category_title" - android:importantForAutofill="no" - android:inputType="text" /> + android:labelFor="@id/search"> + + <com.google.android.material.textfield.TextInputEditText + android:id="@+id/search" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:imeOptions="actionDone" + android:importantForAutofill="no" + android:inputType="text"> + + <requestFocus /> + </com.google.android.material.textfield.TextInputEditText> + </com.google.android.material.textfield.TextInputLayout> + <androidx.recyclerview.widget.RecyclerView android:id="@+id/recycler_view" |