<?xml version="1.0" encoding="utf-8"?>
<org.thoughtcrime.securesms.ConversationVideochatItem
    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="wrap_content"
    android:background="@drawable/conversation_item_background"
    android:focusable="true"
    android:gravity="center"
    android:orientation="vertical"
    android:paddingTop="13dp"
    android:paddingBottom="13dp"
    android:paddingLeft="28dp"
    android:paddingRight="28dp">

    <LinearLayout
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:gravity="center"
        android:orientation="vertical">

        <LinearLayout
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:gravity="center"
            android:layout_marginBottom="5dp"
            android:orientation="horizontal">

            <FrameLayout
                android:id="@+id/video_icon_container"
                android:layout_width="36dp"
                android:layout_height="36dp"
                android:layout_marginLeft="2dp"
                android:layout_marginRight="2dp"
                android:background="@drawable/circle_universal_overlay"
                android:layout_alignParentLeft="true"
                android:layout_alignParentStart="true"
                android:layout_alignParentBottom="true">
                <ImageView android:id="@+id/video_icon"
                    android:layout_width="24dp"
                    android:layout_height="24dp"
                    android:layout_gravity="center"
                    android:gravity="center"
                    app:srcCompat="@drawable/ic_videocam_white_24dp" />
            </FrameLayout>

            <FrameLayout
                android:id="@+id/contact_photo_container"
                android:layout_width="36dp"
                android:layout_height="wrap_content"
                android:layout_marginLeft="2dp"
                android:layout_marginRight="2dp"
                android:layout_alignParentLeft="true"
                android:layout_alignParentStart="true"
                android:layout_alignParentBottom="true">
                <org.thoughtcrime.securesms.components.AvatarImageView
                    android:id="@+id/contact_photo"
                    android:foreground="@drawable/contact_photo_background"
                    android:layout_width="36dp"
                    android:layout_height="36dp"
                    android:cropToPadding="true"
                    android:contentDescription="@null" />
            </FrameLayout>

        </LinearLayout>

        <org.thoughtcrime.securesms.components.emoji.EmojiTextView
            android:id="@+id/conversation_update_body"
            style="@style/Delta.Text.UpdateHeader"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:autoLink="none"
            android:linksClickable="false"
            android:gravity="center"
            android:textColor="?attr/conversation_item_update_text_color"
            android:background="@drawable/conversation_item_update_background"
            android:paddingLeft="10dp"
            android:paddingTop="9dp"
            android:paddingRight="10dp"
            android:paddingBottom="10dp"
            android:lineSpacingMultiplier="1.3"
            tools:text="Paddy invited to a video chat" />

        <org.thoughtcrime.securesms.components.ConversationItemFooter
            android:id="@+id/conversation_item_footer"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginLeft="@dimen/message_bubble_horizontal_padding"
            android:layout_marginBottom="@dimen/message_bubble_bottom_padding"
            android:layout_marginTop="3dp"
            android:paddingTop="2dp"
            android:paddingBottom="2dp"
            android:paddingLeft="@dimen/message_bubble_horizontal_padding"
            android:paddingRight="@dimen/message_bubble_horizontal_padding"
            android:layout_gravity="end"
            android:gravity="end"
            android:clipChildren="false"
            android:clipToPadding="false"
            android:background="@drawable/conversation_item_update_background"
            app:footer_text_color="@color/core_dark_05"/>

    </LinearLayout>

</org.thoughtcrime.securesms.ConversationVideochatItem>
