<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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="?attr/selectableItemBackground"
    android:orientation="vertical"
    android:padding="@dimen/spacer_2x">

    <LinearLayout
        android:id="@+id/parentContainer"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginStart="54dp"
        android:layout_marginBottom="@dimen/spacer_1x"
        android:orientation="horizontal"
        android:visibility="gone"
        tools:visibility="visible">

        <View
            android:id="@+id/parentBorder"
            android:layout_width="2dp"
            android:layout_height="match_parent"
            android:background="?attr/colorSecondary" />

        <TextView
            android:id="@+id/parent"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:ellipsize="end"
            android:maxLines="@integer/comment_parent_max_lines"
            android:paddingVertical="@dimen/spacer_1hx"
            android:paddingStart="@dimen/spacer_1x"
            android:paddingEnd="@null"
            android:textColor="?attr/colorOnSurfaceVariant"
            tools:text="@tools:sample/lorem/random" />
    </LinearLayout>

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:baselineAligned="false"
        android:orientation="horizontal">

        <FrameLayout
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginEnd="@dimen/spacer_1x">

            <androidx.appcompat.widget.AppCompatImageView
                android:id="@+id/avatar"
                android:layout_width="@dimen/avatar_size"
                android:layout_height="@dimen/avatar_size"
                android:layout_gravity="center"
                android:layout_margin="@dimen/spacer_1x"
                android:contentDescription="@null"
                app:srcCompat="@drawable/ic_person_24dp"
                tools:srcCompat="@tools:sample/avatars" />

            <androidx.appcompat.widget.AppCompatImageView
                android:id="@+id/not_synced_yet"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="bottom|end"
                android:visibility="gone"
                app:srcCompat="@drawable/ic_sync_18dp"
                app:tint="?attr/colorPrimary"
                tools:visibility="visible" />
        </FrameLayout>

        <LinearLayout
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:orientation="vertical">

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="horizontal">

                <com.google.android.material.textview.MaterialTextView
                    android:id="@+id/actorDisplayName"
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_weight="1"
                    android:textAppearance="?attr/textAppearanceListItem"
                    android:textColor="?attr/colorOnSurface"
                    tools:text="@tools:sample/full_names" />

                <com.google.android.material.textview.MaterialTextView
                    android:id="@+id/creationDateTime"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center"
                    android:textAppearance="?attr/textAppearanceListItemSecondary"
                    android:textColor="?attr/colorOnSurface"
                    android:textColorHighlight="?attr/colorOnSurfaceVariant"
                    tools:text="@tools:sample/date/day_of_week" />
            </LinearLayout>

            <it.niedermann.android.markdown.MarkdownViewerImpl
                android:id="@+id/message"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_gravity="center"
                android:autofillHints="@null"
                android:textAppearance="?attr/textAppearanceListItem"
                android:textColor="?attr/colorOnSurface"
                tools:maxLength="200"
                tools:text="@tools:sample/lorem/random" />
        </LinearLayout>
    </LinearLayout>
</LinearLayout>