<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <FrameLayout
        android:id="@+id/albumCellContainer"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        />

    <ViewStub
        android:layout_alignTop="@+id/albumCellContainer"
        android:layout_alignStart="@+id/albumCellContainer"
        android:layout_alignEnd="@+id/albumCellContainer"
        android:layout_alignBottom="@+id/albumCellContainer"
        android:id="@+id/albumTransferControlsStub"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="center"
        android:layout="@layout/transfer_controls_stub" />

    <androidx.constraintlayout.widget.ConstraintLayout
        android:layout_alignTop="@+id/albumCellContainer"
        android:layout_alignStart="@+id/albumCellContainer"
        android:layout_alignEnd="@+id/albumCellContainer"
        android:layout_alignBottom="@+id/albumCellContainer"
        tools:visibility="visible"
        android:visibility="gone"
        android:layout_gravity="bottom"
        android:id="@+id/albumCellBodyParent"
        android:layout_width="0dp"
        android:layout_height="wrap_content">
        <ImageView
            android:id="@+id/albumCellShade"
            android:src="@drawable/image_shade"
            android:layout_width="match_parent"
            android:layout_height="0dp"
            app:layout_constraintTop_toTopOf="@+id/albumCellBodyTextParent"
            app:layout_constraintBottom_toBottomOf="parent"
            />
        <LinearLayout
            android:id="@+id/albumCellBodyTextParent"
            android:padding="@dimen/medium_spacing"
            android:layout_width="match_parent"
            android:layout_height="0dp"
            app:layout_constraintBottom_toTopOf="@+id/albumCellBodyTextReadMore"
            android:orientation="horizontal">
            <View
                android:layout_width="@dimen/accent_line_thickness"
                android:layout_height="match_parent"
                android:background="@color/accent"/>
            <org.thoughtcrime.securesms.components.emoji.EmojiTextView
                android:maxLines="4"
                android:ellipsize="end"
                android:id="@+id/albumCellBodyText"
                android:textColor="@color/core_white"
                android:layout_marginStart="@dimen/small_spacing"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"/>
        </LinearLayout>
        <TextView
            tools:visibility="visible"
            android:visibility="gone"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            android:id="@+id/albumCellBodyTextReadMore"
            android:textColor="@color/core_white"
            android:paddingHorizontal="@dimen/medium_spacing"
            android:paddingBottom="@dimen/medium_spacing"
            android:textStyle="bold"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="@string/ConversationItem_read_more"/>
    </androidx.constraintlayout.widget.ConstraintLayout>

</RelativeLayout>