Fix the constraints on the feed preview items

Changelog: changed
This commit is contained in:
Kai 2025-06-11 10:30:48 -05:00
commit adc5013ea4
No known key found for this signature in database

View file

@ -3,24 +3,21 @@
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="match_parent"
android:orientation="vertical"> android:orientation="vertical">
<androidx.constraintlayout.widget.ConstraintLayout <androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="0dp" android:layout_height="0dp"
app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toTopOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintDimensionRatio="H,16:13"> app:layout_constraintDimensionRatio="H,16:13">
<FrameLayout <FrameLayout
android:id="@+id/player_container" android:id="@+id/player_container"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="0dp" android:layout_height="0dp"
app:layout_constraintDimensionRatio="H,16:9" app:layout_constraintDimensionRatio="H,16:9"
app:layout_constraintTop_toTopOf="parent"> app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toTopOf="@id/video_meta">
<ImageView <ImageView
android:id="@+id/image_video_thumbnail" android:id="@+id/image_video_thumbnail"
@ -113,10 +110,10 @@
</FrameLayout> </FrameLayout>
<LinearLayout <LinearLayout
android:id="@+id/video_meta"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="0dp" android:layout_height="0dp"
android:layout_marginTop="-6dp" android:layout_marginTop="-6dp"
android:gravity="center_vertical"
android:orientation="vertical" android:orientation="vertical"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintTop_toBottomOf="@id/player_container"> app:layout_constraintTop_toBottomOf="@id/player_container">
@ -226,6 +223,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="horizontal" android:orientation="horizontal"
android:paddingEnd="6dp" android:paddingEnd="6dp"
app:layout_constraintTop_toBottomOf="@id/creator_thumbnail"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintRight_toRightOf="parent"> app:layout_constraintRight_toRightOf="parent">