aboutsummaryrefslogtreecommitdiff
path: root/Client/BrzoDoLokacije/app/src/main/res/layout
diff options
context:
space:
mode:
authorTAMARA JERINIC <tamara.jerinic@gmail.com>2022-11-28 01:46:34 +0100
committerTAMARA JERINIC <tamara.jerinic@gmail.com>2022-11-28 01:46:34 +0100
commit37b2dff40d7e1395e3dc77bd7bb353e0181a37a6 (patch)
tree0fd75d98956a14eba18c4fed399140555899524f /Client/BrzoDoLokacije/app/src/main/res/layout
parent6e7afb7ae49eff07f9403e006dbe102e402a0441 (diff)
Dodato sortiranje objava na back-u i prikaz sortiranih objava na front-u. Izmenjen prikaz objave.
Diffstat (limited to 'Client/BrzoDoLokacije/app/src/main/res/layout')
-rw-r--r--Client/BrzoDoLokacije/app/src/main/res/layout/fragment_home_page_main_scroll.xml27
-rw-r--r--Client/BrzoDoLokacije/app/src/main/res/layout/post_item_home_page.xml28
2 files changed, 31 insertions, 24 deletions
diff --git a/Client/BrzoDoLokacije/app/src/main/res/layout/fragment_home_page_main_scroll.xml b/Client/BrzoDoLokacije/app/src/main/res/layout/fragment_home_page_main_scroll.xml
index 2883291..efae8d4 100644
--- a/Client/BrzoDoLokacije/app/src/main/res/layout/fragment_home_page_main_scroll.xml
+++ b/Client/BrzoDoLokacije/app/src/main/res/layout/fragment_home_page_main_scroll.xml
@@ -154,19 +154,34 @@ android:layout_marginTop="16dp"
<androidx.cardview.widget.CardView
android:backgroundTint="#f6f6f6"
- android:layout_marginStart="25dp"
+ android:layout_marginStart="10dp"
android:layout_marginEnd="16dp"
+
android:id="@+id/cvFragmentHomePageText2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
+ android:stateListAnimator="@null"
+ android:elevation="0dp"
android:layout_marginTop="16dp">
<TextView
android:id="@+id/tvFragmentHomePageNewest"
android:layout_width="wrap_content"
- android:layout_height="wrap_content"
+ android:layout_height="match_parent"
android:layout_gravity="left"
+ android:drawableBottom="@drawable/ic_baseline_circle_7"
android:text="Najnovije"
+ android:clickable="true"
+ android:textStyle="bold" />
+ <TextView
+ android:id="@+id/tvFragmentHomePageBestRated"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="left"
+ android:text="Najposećenije"
+ android:layout_marginStart="80dp"
+ android:drawableBottom="@drawable/ic_baseline_circle_7"
+
android:textStyle="bold" />
<TextView
@@ -201,13 +216,7 @@ android:layout_marginTop="16dp"
android:layout_height="wrap_content"
android:layout_marginTop="16dp">
- <TextView
- android:id="@+id/tvFragmentHomePageBestRated"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="left"
- android:text="Najposećenije"
- android:textStyle="bold" />
+
<TextView
android:id="@+id/tvFragmentHomePageBestRatedShowAll"
diff --git a/Client/BrzoDoLokacije/app/src/main/res/layout/post_item_home_page.xml b/Client/BrzoDoLokacije/app/src/main/res/layout/post_item_home_page.xml
index a2f20f3..d2c503f 100644
--- a/Client/BrzoDoLokacije/app/src/main/res/layout/post_item_home_page.xml
+++ b/Client/BrzoDoLokacije/app/src/main/res/layout/post_item_home_page.xml
@@ -9,34 +9,32 @@
android:id="@+id/imageView9"
android:layout_width="170dp"
android:layout_height="240dp"
- android:layout_marginStart="4dp"
- android:layout_marginBottom="10dp"
- android:layout_marginEnd="4dp"
+ android:layout_marginStart="7dp"
android:layout_marginTop="4dp"
+ android:layout_marginEnd="7dp"
+ android:layout_marginBottom="10dp"
android:elevation="3dp"
android:src="@color/white"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
-
app:layout_constraintTop_toTopOf="parent"
app:shapeAppearanceOverlay="@style/Circular" />
<com.google.android.material.imageview.ShapeableImageView
android:id="@+id/ivPIHPBackground"
- android:layout_width="0dp"
- android:layout_height="186dp"
- android:layout_marginStart="8dp"
- android:layout_marginEnd="4dp"
+ android:layout_width="172dp"
+ android:layout_height="185dp"
+ android:layout_marginStart="1dp"
+ android:layout_marginEnd="1dp"
android:elevation="3dp"
android:scaleType="fitXY"
app:layout_constraintBottom_toBottomOf="@+id/imageView9"
- app:layout_constraintEnd_toEndOf="@+id/imageView9"
- app:layout_constraintHorizontal_bias="1.0"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toTopOf="parent"
- app:layout_constraintVertical_bias="0.045"
- app:shapeAppearanceOverlay="@style/Circular"
+ app:layout_constraintEnd_toEndOf="@id/imageView9"
+ app:layout_constraintStart_toStartOf="@id/imageView9"
+ app:layout_constraintTop_toTopOf="@id/imageView9"
+ app:layout_constraintVertical_bias="0.0"
+ app:shapeAppearanceOverlay="@style/roundedTop"
app:srcCompat="@drawable/b1" />
<TextView
@@ -95,7 +93,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="4dp"
- android:layout_marginTop="2dp"
+ android:layout_marginTop="4dp"
android:elevation="3dp"
android:text="TextView"
android:textSize="11dp"