aboutsummaryrefslogtreecommitdiff
path: root/androidApp/src/main/res/layout/units_activity.xml
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2022-01-13 01:46:16 -0600
committerIván Ávalos <avalos@disroot.org>2022-01-13 01:46:16 -0600
commit0409f221b208facf6cba9ec7e322d4f1d5e251b8 (patch)
treea34ed3db9f9786924c45aff5df812b4ed9e4afea /androidApp/src/main/res/layout/units_activity.xml
parent3801314f39e4d10b0df07deb4102ccb03f105459 (diff)
downloadetbsa-trackermap-mobile-0409f221b208facf6cba9ec7e322d4f1d5e251b8.tar.gz
etbsa-trackermap-mobile-0409f221b208facf6cba9ec7e322d4f1d5e251b8.tar.bz2
etbsa-trackermap-mobile-0409f221b208facf6cba9ec7e322d4f1d5e251b8.zip
Made search filter cleanable
Diffstat (limited to 'androidApp/src/main/res/layout/units_activity.xml')
-rw-r--r--androidApp/src/main/res/layout/units_activity.xml27
1 files changed, 19 insertions, 8 deletions
diff --git a/androidApp/src/main/res/layout/units_activity.xml b/androidApp/src/main/res/layout/units_activity.xml
index 475598f..9841086 100644
--- a/androidApp/src/main/res/layout/units_activity.xml
+++ b/androidApp/src/main/res/layout/units_activity.xml
@@ -44,16 +44,27 @@
app:layout_constraintStart_toEndOf="@id/userButton"
app:layout_constraintTop_toTopOf="@id/displayModeToggle">
- <com.google.android.material.textfield.TextInputEditText
- android:id="@+id/searchInput"
+ <com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:background="@null"
- android:hint="@string/units_search"
- android:imeOptions="actionSearch"
- android:inputType="text"
- android:lines="1"
- android:paddingHorizontal="16dp" />
+ app:endIconMode="clear_text"
+ app:boxBackgroundMode="none"
+ app:boxStrokeWidth="0dp"
+ app:hintEnabled="false">
+
+ <com.google.android.material.textfield.TextInputEditText
+ android:id="@+id/searchInput"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:background="@null"
+ android:hint="@string/units_search"
+ android:imeOptions="actionSearch"
+ android:inputType="text"
+ android:lines="1"
+ android:paddingTop="12dp"
+ android:paddingHorizontal="16dp" />
+
+ </com.google.android.material.textfield.TextInputLayout>
</com.google.android.material.card.MaterialCardView>