aboutsummaryrefslogtreecommitdiff
path: root/Client/BrzoDoLokacije/app/src/main/res/layout
diff options
context:
space:
mode:
authorOgnjen Cirkovic <ciraboxkg@gmail.com>2022-11-13 21:51:58 +0100
committerOgnjen Cirkovic <ciraboxkg@gmail.com>2022-11-13 21:51:58 +0100
commit9b059bc69abaa01b76827d3d57cf94f8885a99c1 (patch)
tree34ccfdb01a146acdb4922910916d3a72a42d02b2 /Client/BrzoDoLokacije/app/src/main/res/layout
parent68373f0f911f8f2634a935cd2e815d6763cb6993 (diff)
Promenjen izgled search bar-a. Omoguceno ukoliko korisnik pritisne enter da se odmah izvrsi pretraga.
Diffstat (limited to 'Client/BrzoDoLokacije/app/src/main/res/layout')
-rw-r--r--Client/BrzoDoLokacije/app/src/main/res/layout/fragment_browse.xml64
1 files changed, 37 insertions, 27 deletions
diff --git a/Client/BrzoDoLokacije/app/src/main/res/layout/fragment_browse.xml b/Client/BrzoDoLokacije/app/src/main/res/layout/fragment_browse.xml
index 5f20c5f..9e6dd9d 100644
--- a/Client/BrzoDoLokacije/app/src/main/res/layout/fragment_browse.xml
+++ b/Client/BrzoDoLokacije/app/src/main/res/layout/fragment_browse.xml
@@ -15,35 +15,9 @@
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toTopOf="@+id/FragmentBrowseSearchBar" />
+ />
- <com.google.android.material.textfield.TextInputEditText
- android:id="@+id/FragmentBrowseSearchBar"
- android:layout_width="250dp"
- android:layout_height="55dp"
- android:layout_marginTop="40dp"
- android:background="@drawable/rounded_white_button_login"
- android:ems="10"
- android:hint=" Pretraga"
- android:inputType="textPersonName"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toTopOf="parent" />
- <com.google.android.material.floatingactionbutton.FloatingActionButton
- android:id="@+id/FragmentBrowseSearchButton"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentStart="true"
- android:backgroundTint="#FFFFFF"
- android:clickable="true"
- android:focusable="true"
- android:tint="#FFFFFF"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintStart_toEndOf="@+id/FragmentBrowseSearchBar"
- app:layout_constraintTop_toTopOf="@+id/FragmentBrowseSearchBar"
- app:rippleColor="#FFFFFF"
- app:srcCompat="@android:drawable/ic_search_category_default" />
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/FragmentBrowseMyLocation"
@@ -60,5 +34,41 @@
app:rippleColor="#FFFFFF"
app:srcCompat="@android:drawable/ic_menu_mylocation" />
+ <androidx.cardview.widget.CardView
+ android:id="@+id/FragmentBrowseCardViewSearch"
+ android:layout_width="0dp"
+ android:layout_marginTop="60dp"
+ android:layout_height="40dp"
+ android:layout_marginStart="16dp"
+ android:layout_marginEnd="16dp"
+ android:elevation="0dp"
+ app:cardCornerRadius="20dp"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toTopOf="parent">
+
+
+ <com.google.android.material.textfield.TextInputEditText
+ android:id="@+id/FragmentBrowseSearchBar"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:background="@drawable/rounded_white_button_login"
+ android:hint=" Pretraga"
+ android:inputType="textPersonName"
+ android:paddingLeft="15dp" />
+
+ <com.google.android.material.button.MaterialButton
+ android:id="@+id/FragmentBrowseSearchButton"
+ android:layout_width="49dp"
+ android:layout_height="match_parent"
+ android:layout_gravity="right"
+ android:background="#00FFFFFF"
+ app:backgroundTint="#00FFFFFF"
+ app:cornerRadius="16dp"
+ app:icon="@drawable/ic_baseline_search_24"
+ app:iconTint="#333D70" />
+
+ </androidx.cardview.widget.CardView>
+
</androidx.constraintlayout.widget.ConstraintLayout> \ No newline at end of file