app/src/main/res/layout/item_quote.xml
<?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"
android:background="?selectableItemBackground"
android:orientation="vertical"
android:paddingTop="12dp"
android:paddingBottom="12dp"
android:transitionName="test">
<com.google.android.material.button.MaterialButton
android:id="@+id/shareBtn"
style="@style/Widget.Material3.Button.IconButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:icon="@drawable/ic_share"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<View
android:id="@+id/quoteDividerView"
android:layout_width="3dp"
android:layout_height="0dp"
android:layout_marginStart="16dp"
android:background="#4888"
app:layout_constraintBottom_toBottomOf="@id/quoteTextView"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="@id/quoteTextView" />
<TextView
android:id="@+id/quoteTextView"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginEnd="8dp"
android:fontFamily="@font/robotoslab"
android:textAppearance="?textAppearanceBodyLarge"
app:layout_constraintEnd_toStartOf="@id/shareBtn"
app:layout_constraintStart_toEndOf="@id/quoteDividerView"
app:layout_constraintTop_toTopOf="parent"
app:layout_goneMarginEnd="16dp"
tools:text="At one minute to twelve, she was sure of it, and cursed herself for even thinking for a moment the cat-creature would help her escape." />
<TextView
android:id="@+id/titleTextView"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="8dp"
android:fontFamily="@font/robotoslab"
android:gravity="end"
android:textAppearance="?textAppearanceLabelMedium"
android:textColor="?android:textColorSecondary"
app:layout_constraintEnd_toStartOf="@id/shareBtn"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/quoteTextView"
app:layout_goneMarginEnd="16dp"
tools:text="Clariel" />
<TextView
android:id="@+id/authorTextView"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginEnd="8dp"
android:fontFamily="@font/robotoslab"
android:gravity="end"
android:textAppearance="?textAppearanceLabelMedium"
android:textColor="?android:textColorSecondary"
android:textStyle="italic"
app:layout_constraintEnd_toStartOf="@id/shareBtn"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/titleTextView"
app:layout_goneMarginEnd="16dp"
tools:text="Garth Nix" />
</androidx.constraintlayout.widget.ConstraintLayout>