diff options
author | TAMARA JERINIC <tamara.jerinic@gmail.com> | 2022-11-13 04:05:53 +0100 |
---|---|---|
committer | TAMARA JERINIC <tamara.jerinic@gmail.com> | 2022-11-13 04:05:53 +0100 |
commit | c2617ba1bb0481c045a161c7e1acc841ec169bf5 (patch) | |
tree | 6a5a00a14f2c0d3da71f66c05e48d568a1010cb4 /Client/BrzoDoLokacije/app/src/main/res/layout | |
parent | e9da07c75242eeab3a1ef4f6e856fc5f05f08422 (diff) |
Omogućen prikaz sortiranih objava na početnoj strani.
Diffstat (limited to 'Client/BrzoDoLokacije/app/src/main/res/layout')
-rw-r--r-- | Client/BrzoDoLokacije/app/src/main/res/layout/fragment_home_page.xml | 5 | ||||
-rw-r--r-- | Client/BrzoDoLokacije/app/src/main/res/layout/post_item_home_page.xml | 25 |
2 files changed, 14 insertions, 16 deletions
diff --git a/Client/BrzoDoLokacije/app/src/main/res/layout/fragment_home_page.xml b/Client/BrzoDoLokacije/app/src/main/res/layout/fragment_home_page.xml index eda952d..7d1c73a 100644 --- a/Client/BrzoDoLokacije/app/src/main/res/layout/fragment_home_page.xml +++ b/Client/BrzoDoLokacije/app/src/main/res/layout/fragment_home_page.xml @@ -9,7 +9,7 @@ <!-- TODO: Update blank fragment layout --> <androidx.recyclerview.widget.RecyclerView - android:id="@+id/recyclerView" + android:id="@+id/rvFragmentHomePagePopular" android:layout_width="0dp" android:layout_height="160dp" android:layout_marginStart="16dp" @@ -115,7 +115,7 @@ app:layout_constraintEnd_toEndOf="parent" app:layout_constraintHorizontal_bias="0.0" app:layout_constraintStart_toStartOf="parent" - app:layout_constraintTop_toBottomOf="@+id/recyclerView"> + app:layout_constraintTop_toBottomOf="@+id/rvFragmentHomePagePopular"> <LinearLayout android:id="@+id/linearLayout2" @@ -196,6 +196,7 @@ app:layout_constraintTop_toBottomOf="@+id/scrollview" /> <androidx.recyclerview.widget.RecyclerView + android:id="@+id/rvFragmentHomePageLatest" android:layout_width="0dp" android:layout_height="174dp" android:layout_marginStart="16dp" 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 04515c0..f8ff70e 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 @@ -2,34 +2,32 @@ <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="wrap_content"> + android:layout_width="150dp" + android:layout_height="150dp"> <com.google.android.material.imageview.ShapeableImageView android:id="@+id/ivPIHPBackground" android:layout_width="0dp" - android:layout_height="390dp" - android:layout_marginStart="8dp" + android:layout_height="150dp" android:layout_marginTop="8dp" - android:layout_marginEnd="8dp" + android:layout_marginEnd="16dp" android:layout_marginBottom="8dp" android:scaleType="fitXY" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" - app:shapeAppearanceOverlay="@style/imageViewCircle" + app:shapeAppearanceOverlay="@style/Circular" app:srcCompat="@drawable/b1" /> <com.google.android.material.imageview.ShapeableImageView android:id="@+id/ivPIHPMenu" - android:layout_width="match_parent" - android:layout_height="70dp" - android:layout_marginStart="8dp" - android:layout_marginEnd="8dp" + android:layout_width="0dp" + android:layout_height="22dp" app:layout_constraintBottom_toBottomOf="@+id/ivPIHPBackground" - app:layout_constraintEnd_toEndOf="@+id/ivPIHPBackground" + app:layout_constraintEnd_toEndOf="@+id/ivPIHPBackground" + app:layout_constraintHorizontal_bias="0.0" app:layout_constraintStart_toStartOf="@+id/ivPIHPBackground" app:shapeAppearanceOverlay="@style/roundedBottom" app:srcCompat="@color/dark_blue_transparent" /> @@ -38,11 +36,10 @@ android:id="@+id/tvPIHPLocationName" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginStart="52dp" - android:layout_marginTop="8dp" + android:layout_marginStart="8dp" android:text="TextView" - android:textSize="20dp" android:textColor="@color/white" + android:textSize="10dp" app:layout_constraintStart_toStartOf="@+id/ivPIHPMenu" app:layout_constraintTop_toTopOf="@+id/ivPIHPMenu" /> |