aboutsummaryrefslogtreecommitdiff
path: root/Client/BrzoDoLokacije/app/src/main/res/layout
diff options
context:
space:
mode:
authorTAMARA JERINIC <tamara.jerinic@gmail.com>2022-11-13 02:10:20 +0100
committerTAMARA JERINIC <tamara.jerinic@gmail.com>2022-11-13 02:10:20 +0100
commite9da07c75242eeab3a1ef4f6e856fc5f05f08422 (patch)
treec55b497df73ee7f51c59f188ed0dc2a573692697 /Client/BrzoDoLokacije/app/src/main/res/layout
parentb562a184aea115ab898b6efc0de7675a5ee61b31 (diff)
Dodat adapter za prikaz objava na početnoj strani. Napravljen xml za prikaz objave na početnoj strani.
Diffstat (limited to 'Client/BrzoDoLokacije/app/src/main/res/layout')
-rw-r--r--Client/BrzoDoLokacije/app/src/main/res/layout/post_item_home_page.xml50
1 files changed, 50 insertions, 0 deletions
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
new file mode 100644
index 0000000..04515c0
--- /dev/null
+++ b/Client/BrzoDoLokacije/app/src/main/res/layout/post_item_home_page.xml
@@ -0,0 +1,50 @@
+<?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:layout_width="match_parent"
+ android:layout_height="wrap_content">
+
+ <com.google.android.material.imageview.ShapeableImageView
+ android:id="@+id/ivPIHPBackground"
+ android:layout_width="0dp"
+ android:layout_height="390dp"
+ android:layout_marginStart="8dp"
+ android:layout_marginTop="8dp"
+ android:layout_marginEnd="8dp"
+ 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: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"
+ app:layout_constraintBottom_toBottomOf="@+id/ivPIHPBackground"
+ app:layout_constraintEnd_toEndOf="@+id/ivPIHPBackground"
+
+ app:layout_constraintStart_toStartOf="@+id/ivPIHPBackground"
+ app:shapeAppearanceOverlay="@style/roundedBottom"
+ app:srcCompat="@color/dark_blue_transparent" />
+
+ <TextView
+ android:id="@+id/tvPIHPLocationName"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginStart="52dp"
+ android:layout_marginTop="8dp"
+ android:text="TextView"
+ android:textSize="20dp"
+ android:textColor="@color/white"
+ app:layout_constraintStart_toStartOf="@+id/ivPIHPMenu"
+ app:layout_constraintTop_toTopOf="@+id/ivPIHPMenu" />
+
+
+</androidx.constraintlayout.widget.ConstraintLayout> \ No newline at end of file