Skip to content
Snippets Groups Projects
Commit 5d9a86c5 authored by Taras's avatar Taras
Browse files

Refactor media post layouts

parent 75aed82b
No related branches found
No related tags found
No related merge requests found
......@@ -8,10 +8,9 @@
android:id="@+id/ivGalleryImage"
android:layout_width="0dp"
android:layout_height="0dp"
android:clickable="true"
android:focusable="true"
android:scaleType="centerCrop"
android:foreground="?attr/selectableItemBackground"
android:scaleType="centerCrop"
android:src="@drawable/blurred_placeholder"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintDimensionRatio="w,1:1"
app:layout_constraintEnd_toEndOf="parent"
......
......@@ -4,8 +4,6 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:clickable="true"
android:focusable="true"
android:foreground="?attr/selectableItemBackground">
<ImageView
......
......@@ -9,12 +9,11 @@
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ImageView
android:id="@+id/ivContent"
<include
android:id="@+id/imageItem"
layout="@layout/gallery_image_list_item"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:adjustViewBounds="true"
android:src="@drawable/blurred_placeholder" />
android:layout_height="wrap_content" />
<org.futo.circles.view.LoadingView
android:id="@+id/vLoadingImage"
......
......@@ -65,6 +65,8 @@
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:clickable="true"
android:focusable="true"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/postHeader" />
......
......@@ -15,11 +15,7 @@
android:id="@+id/videoItem"
layout="@layout/gallery_video_list_item"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintDimensionRatio="w,1:1"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
android:layout_height="wrap_content" />
<com.google.android.material.imageview.ShapeableImageView
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment