aboutsummaryrefslogtreecommitdiff
path: root/Client/BrzoDoLokacije/app/src/main/res/layout
diff options
context:
space:
mode:
authorOgnjen Cirkovic <ciraboxkg@gmail.com>2022-11-12 18:35:51 +0100
committerOgnjen Cirkovic <ciraboxkg@gmail.com>2022-11-12 18:35:51 +0100
commit7d3b6402cd18d69f31acb0b690e03e3dd8d5d282 (patch)
tree1ecb04bf291ca3ce0493eea3d9ac6c2b2bc10917 /Client/BrzoDoLokacije/app/src/main/res/layout
parenta2e36b576eac1f3f7ef6ec185abbb6a7203e0d08 (diff)
Dodat search bar na mapi i omogucena pretraga po lokacijama.
Diffstat (limited to 'Client/BrzoDoLokacije/app/src/main/res/layout')
-rw-r--r--Client/BrzoDoLokacije/app/src/main/res/layout/fragment_browse.xml41
1 files changed, 38 insertions, 3 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 a811522..cdccaa6 100644
--- a/Client/BrzoDoLokacije/app/src/main/res/layout/fragment_browse.xml
+++ b/Client/BrzoDoLokacije/app/src/main/res/layout/fragment_browse.xml
@@ -1,14 +1,49 @@
<?xml version="1.0" encoding="utf-8"?>
-<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
+<androidx.constraintlayout.widget.ConstraintLayout 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="match_parent"
tools:context=".Fragments.FragmentBrowse">
+
+
+
<org.osmdroid.views.MapView
android:id="@+id/FragmentBrowseMapView"
android:layout_width="fill_parent"
- android:layout_height="fill_parent"/>
+ android:layout_height="fill_parent"
+ 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" />
-</FrameLayout> \ No newline at end of file
+</androidx.constraintlayout.widget.ConstraintLayout> \ No newline at end of file