<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto"
    android:focusable="true"
    android:clickable="true"
    android:clipChildren="false"
    android:clipToPadding="false"
    android:layout_width="@dimen/person_card_width"
    android:layout_height="@dimen/person_card_height"
    android:layout_marginEnd="12dp">
    <androidx.cardview.widget.CardView
        android:id="@+id/person_card_container"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        app:cardBackgroundColor="#1a1a1a"
        app:cardCornerRadius="@dimen/person_card_radius"
        app:cardElevation="0dp">
        <LinearLayout
            android:orientation="vertical"
            android:layout_width="match_parent"
            android:layout_height="match_parent">
            <ImageView
                android:id="@+id/person_photo"
                android:background="#2a2a2a"
                android:layout_width="match_parent"
                android:layout_height="@dimen/person_card_image_height"
                android:scaleType="centerCrop"/>
            <LinearLayout
                android:gravity="center"
                android:background="#0d0d0d"
                android:paddingTop="6dp"
                android:paddingBottom="6dp"
                android:layout_width="match_parent"
                android:layout_height="0dp"
                android:layout_weight="1"
                android:paddingStart="8dp"
                android:paddingEnd="8dp">
                <TextView
                    android:textSize="@dimen/person_card_name_size"
                    android:textStyle="normal"
                    android:textColor="@android:color/white"
                    android:ellipsize="end"
                    android:gravity="center"
                    android:id="@+id/person_name"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:maxLines="2"/>
            </LinearLayout>
        </LinearLayout>
        <View
            android:id="@+id/focus_overlay"
            android:background="@drawable/person_card_focus_overlay"
            android:visibility="invisible"
            android:layout_width="match_parent"
            android:layout_height="match_parent"/>
    </androidx.cardview.widget.CardView>
</FrameLayout>
