aboutsummaryrefslogtreecommitdiff
path: root/Client/BrzoDoLokacije/app/src/main/res/layout
diff options
context:
space:
mode:
authorTAMARA JERINIC <tamara.jerinic@gmail.com>2022-11-10 00:41:28 +0100
committerTAMARA JERINIC <tamara.jerinic@gmail.com>2022-11-10 00:41:28 +0100
commite5ff284cfc4b1944d13034ff183efef49f631e4b (patch)
tree54f58762fadce62f43e9b266bbe04618e9a1f1ec /Client/BrzoDoLokacije/app/src/main/res/layout
parent9659c8868d19b31cf9ecae40bd28a30f13127f26 (diff)
Dodat bottom sheet dialog za dodavanje objave i lokacije. Izmenjen bottom sheet dialog za dodavanje fotografija.
Diffstat (limited to 'Client/BrzoDoLokacije/app/src/main/res/layout')
-rw-r--r--Client/BrzoDoLokacije/app/src/main/res/layout/activity_maps.xml9
-rw-r--r--Client/BrzoDoLokacije/app/src/main/res/layout/bottom_sheet_add_new.xml57
-rw-r--r--Client/BrzoDoLokacije/app/src/main/res/layout/bottom_sheet_add_new_post.xml63
3 files changed, 109 insertions, 20 deletions
diff --git a/Client/BrzoDoLokacije/app/src/main/res/layout/activity_maps.xml b/Client/BrzoDoLokacije/app/src/main/res/layout/activity_maps.xml
new file mode 100644
index 0000000..01c8abd
--- /dev/null
+++ b/Client/BrzoDoLokacije/app/src/main/res/layout/activity_maps.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<fragment xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:map="http://schemas.android.com/apk/res-auto"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:id="@+id/map"
+ android:name="com.google.android.gms.maps.SupportMapFragment"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ tools:context=".Activities.MapsActivity" /> \ No newline at end of file
diff --git a/Client/BrzoDoLokacije/app/src/main/res/layout/bottom_sheet_add_new.xml b/Client/BrzoDoLokacije/app/src/main/res/layout/bottom_sheet_add_new.xml
index 8f9700e..8e93eb5 100644
--- a/Client/BrzoDoLokacije/app/src/main/res/layout/bottom_sheet_add_new.xml
+++ b/Client/BrzoDoLokacije/app/src/main/res/layout/bottom_sheet_add_new.xml
@@ -2,7 +2,7 @@
<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:id="@+id/bottomSheetAddNewForNav"
+ android:id="@+id/bottomSheetAddNew"
android:layout_width="match_parent"
android:layout_height="wrap_content">
@@ -10,36 +10,53 @@
android:id="@+id/textView6"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:text="Dodaj novu objavu"
+ android:layout_marginTop="16dp"
+ android:fontFamily="sans-serif-black"
+ android:text=" "
+ android:textSize="20sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
- <Button
- android:id="@+id/btnBottomSheetAddNewOpenAddPost"
- android:layout_width="165dp"
- android:layout_height="88dp"
- android:layout_marginStart="16dp"
- android:layout_marginTop="8dp"
- android:text="Izaberi fotografije iz galerije"
+ <ImageButton
+ android:id="@+id/btnBottomSheetAddNewPost"
+ android:layout_width="0dp"
+ android:layout_height="60dp"
+ android:layout_marginStart="30dp"
+ android:layout_marginTop="16dp"
+ android:layout_marginEnd="40dp"
+
+ android:layout_marginBottom="24dp"
+ android:background="@drawable/button_add_post"
app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintEnd_toStartOf="@+id/btnBottomSheetAddNewLocation"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/textView6"
- app:layout_constraintVertical_bias="1.0" />
-
- <Button
- android:id="@+id/btnBottomSheetAddNewOpenCapturePost"
+ app:layout_constraintVertical_bias="0.0" />
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginStart="16dp"
- android:text="Nova fotografija"
+ <ImageButton
+ android:id="@+id/btnBottomSheetAddNewLocation"
+ android:layout_width="0dp"
+ android:layout_height="60dp"
+ android:layout_marginTop="16dp"
+ android:layout_marginEnd="30dp"
+ android:layout_marginBottom="24dp"
+ android:background="@drawable/button_add_location"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintHorizontal_bias="0.862"
- app:layout_constraintStart_toEndOf="@+id/btnBottomSheetAddNewOpenAddPost"
+ app:layout_constraintHorizontal_bias="1.0"
+ app:layout_constraintStart_toEndOf="@+id/btnBottomSheetAddNewPost"
app:layout_constraintTop_toBottomOf="@+id/textView6"
- app:layout_constraintVertical_bias="0.666" />
+ app:layout_constraintVertical_bias="1.0" />
+
+ <ImageButton
+ android:id="@+id/btnBottomSheetAddNewClose"
+ android:layout_width="65dp"
+ android:layout_height="17dp"
+ app:cornerRadius="50dp"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout> \ No newline at end of file
diff --git a/Client/BrzoDoLokacije/app/src/main/res/layout/bottom_sheet_add_new_post.xml b/Client/BrzoDoLokacije/app/src/main/res/layout/bottom_sheet_add_new_post.xml
new file mode 100644
index 0000000..10aa669
--- /dev/null
+++ b/Client/BrzoDoLokacije/app/src/main/res/layout/bottom_sheet_add_new_post.xml
@@ -0,0 +1,63 @@
+<?xml version="1.0" encoding="utf-8"?>
+<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:id="@+id/bottomSheetAddNewForNav"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+>
+ <TextView
+ android:id="@+id/textView6"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="16dp"
+ android:fontFamily="sans-serif-black"
+ android:text="Dodaj novu objavu"
+ android:textSize="20sp"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toTopOf="parent" />
+
+ <ImageButton
+ android:id="@+id/btnBottomSheetAddNewPostOpenAddPost"
+ android:layout_width="0dp"
+ android:layout_height="60dp"
+ android:layout_marginStart="30dp"
+
+ android:layout_marginTop="16dp"
+ android:layout_marginEnd="40dp"
+ android:layout_marginBottom="24dp"
+ android:background="@drawable/button_choose_from_gallery"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintEnd_toStartOf="@+id/btnBottomSheetAddNewPostOpenCapturePost"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toBottomOf="@+id/textView6"
+ app:layout_constraintVertical_bias="0.0" />
+
+ <ImageButton
+ android:id="@+id/btnBottomSheetAddNewPostOpenCapturePost"
+
+ android:layout_width="0dp"
+ android:layout_height="60dp"
+ android:layout_marginTop="16dp"
+ android:layout_marginEnd="30dp"
+ android:layout_marginBottom="24dp"
+ android:background="@drawable/button_capture"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintHorizontal_bias="1.0"
+ app:layout_constraintStart_toEndOf="@+id/btnBottomSheetAddNewPostOpenAddPost"
+ app:layout_constraintTop_toBottomOf="@+id/textView6"
+ app:layout_constraintVertical_bias="1.0" />
+
+ <ImageButton
+ android:id="@+id/btnBottomSheetAddNewPostClose"
+ android:layout_width="65dp"
+ android:layout_height="17dp"
+ app:cornerRadius="50dp"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toTopOf="parent" />
+
+
+</androidx.constraintlayout.widget.ConstraintLayout> \ No newline at end of file