diff options
| author | Jelena Petrovic <jelenapetrovic.7119@gmail.com> | 2022-11-05 23:20:41 +0100 | 
|---|---|---|
| committer | Jelena Petrovic <jelenapetrovic.7119@gmail.com> | 2022-11-05 23:20:41 +0100 | 
| commit | fddf235aaf67921c654757f22a63e1500f0b7bbd (patch) | |
| tree | bfe6aeea899d3c95795a46657edd39aa98b8cacf /Client/BrzoDoLokacije/app/src/main/res/layout | |
| parent | d42269e5bf6dcb4f125c395868a88295686a7895 (diff) | |
zapocet rad na prikazu jedne objave, dodata lista slika #16
Diffstat (limited to 'Client/BrzoDoLokacije/app/src/main/res/layout')
3 files changed, 49 insertions, 2 deletions
diff --git a/Client/BrzoDoLokacije/app/src/main/res/layout/fragment_post.xml b/Client/BrzoDoLokacije/app/src/main/res/layout/fragment_post.xml new file mode 100644 index 0000000..0b37348 --- /dev/null +++ b/Client/BrzoDoLokacije/app/src/main/res/layout/fragment_post.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" +    xmlns:tools="http://schemas.android.com/tools" +    android:layout_width="match_parent" +    android:layout_height="match_parent" +    xmlns:app="http://schemas.android.com/apk/res-auto" +    tools:context=".Fragments.FragmentPost"> + +    <androidx.recyclerview.widget.RecyclerView +        android:id="@+id/rvMain" +        android:orientation="horizontal" +        android:layout_width="match_parent" +        android:layout_height="823dp" +        app:layout_constraintStart_toStartOf="parent" +        app:layout_constraintTop_toTopOf="parent" > + +    </androidx.recyclerview.widget.RecyclerView> + +</LinearLayout>
\ No newline at end of file diff --git a/Client/BrzoDoLokacije/app/src/main/res/layout/post_image.xml b/Client/BrzoDoLokacije/app/src/main/res/layout/post_image.xml new file mode 100644 index 0000000..c2a999d --- /dev/null +++ b/Client/BrzoDoLokacije/app/src/main/res/layout/post_image.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="utf-8"?> +<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" +    android:layout_width="380dp" +    android:layout_height="wrap_content" +    xmlns:app="http://schemas.android.com/apk/res-auto" +    android:layout_margin="10dp" +    android:background="@drawable/rounded_picture_background" +    android:clipToOutline="true" +    android:clickable="true"> + +    <ImageView +        android:id="@+id/locationImage" +        android:layout_width="match_parent" +        android:layout_height="420dp" +        android:outlineProvider="background" +        android:scaleType="centerCrop" +        android:src="@drawable/b1" +        app:layout_constraintBottom_toBottomOf="parent" +        app:layout_constraintEnd_toEndOf="parent" +        app:layout_constraintHorizontal_bias="0.0" +        app:layout_constraintStart_toStartOf="parent" +        app:layout_constraintTop_toTopOf="parent" +        app:layout_constraintVertical_bias="0.0" /> + + + +</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file diff --git a/Client/BrzoDoLokacije/app/src/main/res/layout/post_preview.xml b/Client/BrzoDoLokacije/app/src/main/res/layout/post_preview.xml index ffdd5d7..7283931 100644 --- a/Client/BrzoDoLokacije/app/src/main/res/layout/post_preview.xml +++ b/Client/BrzoDoLokacije/app/src/main/res/layout/post_preview.xml @@ -9,11 +9,13 @@      android:clipToOutline="true"  > +      <ImageView          android:id="@+id/locationImage"          android:layout_width="match_parent" -        android:layout_height="330dp" +        android:layout_height="250dp"          android:outlineProvider="background" +        android:scaleType="centerCrop"          android:src="@drawable/b1"          app:layout_constraintBottom_toBottomOf="parent"          app:layout_constraintEnd_toEndOf="parent" @@ -75,5 +77,4 @@          app:layout_constraintTop_toTopOf="@+id/vBanner"          app:layout_constraintVertical_bias="0.737" /> -  </androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file  | 
