1<?xml version="1.0" encoding="utf-8"?> 2<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" 3 xmlns:app="http://schemas.android.com/apk/res-auto" 4 xmlns:tools="http://schemas.android.com/tools" 5 android:layout_marginLeft="24dp" 6 android:layout_marginRight="24dp" 7 android:layout_width="match_parent" 8 android:layout_height="wrap_content"> 9 10 <ImageView 11 android:id="@+id/animationView" 12 android:layout_width="match_parent" 13 android:layout_height="0dp" 14 android:background="@drawable/list_item_animation_background" 15 app:layout_constraintDimensionRatio="1"/> 16 17 <TextView 18 android:id="@+id/titleView" 19 android:layout_width="0dp" 20 android:layout_height="wrap_content" 21 android:layout_marginEnd="8dp" 22 android:layout_marginRight="8dp" 23 android:layout_marginTop="8dp" 24 app:layout_constraintEnd_toEndOf="parent" 25 app:layout_constraintStart_toStartOf="parent" 26 app:layout_constraintTop_toBottomOf="@+id/animationView" 27 tools:text="Loading Animation 1"/> 28 29 <TextView 30 android:id="@+id/authorView" 31 android:layout_width="0dp" 32 android:layout_height="wrap_content" 33 android:layout_marginBottom="24dp" 34 android:layout_marginEnd="8dp" 35 android:layout_marginRight="8dp" 36 android:layout_marginTop="8dp" 37 app:layout_constraintBottom_toBottomOf="parent" 38 app:layout_constraintEnd_toEndOf="parent" 39 app:layout_constraintStart_toStartOf="@+id/titleView" 40 app:layout_constraintTop_toBottomOf="@+id/titleView" 41 tools:text="Gabriel Peal"/> 42 43 <View 44 android:id="@+id/clickOverlay" 45 android:layout_width="0dp" 46 android:layout_height="0dp" 47 android:background="?attr/selectableItemBackground" 48 app:layout_constraintBottom_toBottomOf="parent" 49 app:layout_constraintEnd_toEndOf="parent" 50 app:layout_constraintStart_toStartOf="parent" 51 app:layout_constraintTop_toTopOf="@+id/animationView"/> 52 53 54</androidx.constraintlayout.widget.ConstraintLayout>