aboutsummaryrefslogtreecommitdiff
path: root/androidApp/src/main/res/layout
diff options
context:
space:
mode:
authorIsidro Henoch <imhenoch@protonmail.com>2021-12-11 18:09:42 -0600
committerIsidro Henoch <imhenoch@protonmail.com>2021-12-11 18:09:42 -0600
commitcd3c9d93053241b48051ca20d301e4768a576456 (patch)
tree6a1cedaed75b7edcf36217038470b66c1664f3fb /androidApp/src/main/res/layout
parent04c2889895483f5925c90ed7a856d38391fcab45 (diff)
downloadetbsa-trackermap-mobile-cd3c9d93053241b48051ca20d301e4768a576456.tar.gz
etbsa-trackermap-mobile-cd3c9d93053241b48051ca20d301e4768a576456.tar.bz2
etbsa-trackermap-mobile-cd3c9d93053241b48051ca20d301e4768a576456.zip
Adds the search behaviour
- Updates units_activity to include a search input - Adds the search functionality to the Units VM - Adds the required events to the Units Activity to perform the search
Diffstat (limited to 'androidApp/src/main/res/layout')
-rw-r--r--androidApp/src/main/res/layout/units_activity.xml26
1 files changed, 26 insertions, 0 deletions
diff --git a/androidApp/src/main/res/layout/units_activity.xml b/androidApp/src/main/res/layout/units_activity.xml
index fa98bfc..750e00f 100644
--- a/androidApp/src/main/res/layout/units_activity.xml
+++ b/androidApp/src/main/res/layout/units_activity.xml
@@ -16,6 +16,32 @@
app:layout_constraintBottom_toBottomOf="parent"
android:background="@color/colorPrimary"/>
+ <com.google.android.material.card.MaterialCardView
+ android:layout_width="0dp"
+ android:layout_height="0dp"
+ app:layout_constraintTop_toTopOf="@id/displayModeToggle"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintEnd_toStartOf="@id/displayModeToggle"
+ app:layout_constraintBottom_toBottomOf="@id/displayModeToggle"
+ android:layout_marginVertical="4dp"
+ android:layout_marginStart="16dp"
+ android:layout_marginEnd="8dp"
+ app:cardCornerRadius="25dp"
+ app:cardElevation="5dp">
+
+ <com.google.android.material.textfield.TextInputEditText
+ android:id="@+id/searchInput"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:hint="Type to search"
+ android:paddingHorizontal="16dp"
+ android:background="@null"
+ android:inputType="text"
+ android:lines="1"
+ android:imeOptions="actionSearch" />
+
+ </com.google.android.material.card.MaterialCardView>
+
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/displayModeToggle"
android:layout_width="wrap_content"