aboutsummaryrefslogtreecommitdiff
path: root/Client/BrzoDoLokacije/app/src/main/res/layout
diff options
context:
space:
mode:
authorTAMARA JERINIC <tamara.jerinic@gmail.com>2022-12-12 01:11:03 +0100
committerTAMARA JERINIC <tamara.jerinic@gmail.com>2022-12-12 01:11:03 +0100
commitb73b6524ff44433c74f899421fcf8284131367cb (patch)
treea7f7eacde83ebd9c634a1ff44805451f6f1a32da /Client/BrzoDoLokacije/app/src/main/res/layout
parent7258ef7ee138ea4496f55ea19c275982fa5e0c27 (diff)
Izmenjem izgled bottom sheet menija. Izmenjen meni.
Diffstat (limited to 'Client/BrzoDoLokacije/app/src/main/res/layout')
-rw-r--r--Client/BrzoDoLokacije/app/src/main/res/layout/activity_navigation.xml6
-rw-r--r--Client/BrzoDoLokacije/app/src/main/res/layout/bottom_sheet_add_new_post.xml65
2 files changed, 35 insertions, 36 deletions
diff --git a/Client/BrzoDoLokacije/app/src/main/res/layout/activity_navigation.xml b/Client/BrzoDoLokacije/app/src/main/res/layout/activity_navigation.xml
index 4ba2b6d..f86ba9e 100644
--- a/Client/BrzoDoLokacije/app/src/main/res/layout/activity_navigation.xml
+++ b/Client/BrzoDoLokacije/app/src/main/res/layout/activity_navigation.xml
@@ -19,11 +19,11 @@
<com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/bottomNavigationView"
android:layout_width="match_parent"
- android:layout_height="75dp"
+ android:layout_height="60dp"
app:labelVisibilityMode="unlabeled"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintHorizontal_bias="0.5"
+ app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintStart_toStartOf="parent"
- app:menu="@menu/bottom_nav_menu"/>
+ app:menu="@menu/bottom_nav_menu" />
</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
index 10aa669..2ab8067 100644
--- 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
@@ -1,16 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
-<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
+<com.google.android.material.circularreveal.CircularRevealLinearLayout 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"
->
+ android:orientation="vertical">
+
+ <ImageButton
+ android:id="@+id/btnBottomSheetAddNewPostClose"
+ android:layout_width="100dp"
+ android:layout_height="20dp"
+ android:layout_gravity="center"
+ app:cornerRadius="50dp"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toTopOf="parent" />
+
<TextView
android:id="@+id/textView6"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_marginTop="16dp"
+ android:layout_gravity="center"
+ android:layout_marginTop="5dp"
android:fontFamily="sans-serif-black"
android:text="Dodaj novu objavu"
android:textSize="20sp"
@@ -18,46 +30,33 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
- <ImageButton
+ <Button
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"
+ style="@style/clean_button_margin"
+ android:layout_width="match_parent"
+ android:layout_marginTop="20dp"
+ android:gravity="left|center_vertical"
+ android:drawableLeft="@drawable/ic_outline_add_photo_alternate_24"
+ android:text="Izaberi fotografije iz galerije"
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
+ <Button
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"
+ style="@style/clean_button_margin"
+ android:layout_width="match_parent"
+ android:drawableLeft="@drawable/ic_outline_add_a_photo_24"
+android:layout_marginBottom="16dp"
+ android:text="FotografiĊĦi"
+ android:gravity="left|center_vertical"
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" />
+ app:layout_constraintTop_toBottomOf="@+id/btnBottomSheetAddNewPostOpenAddPost"
+ app:shapeAppearance="@style/imageViewRoundedEdge" />
-</androidx.constraintlayout.widget.ConstraintLayout> \ No newline at end of file
+</com.google.android.material.circularreveal.CircularRevealLinearLayout> \ No newline at end of file