<?xml version="1.0" encoding="utf-8"?>

<LinearLayout
    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:id="@+id/body_bubble"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:orientation="vertical"
    android:layout_alignWithParentIfMissing="true"
    android:layout_marginLeft="@dimen/message_bubble_edge_margin"
    android:layout_marginStart="@dimen/message_bubble_edge_margin"
    android:clipToPadding="false"
    android:clipChildren="false"
    android:background="@color/white"
    tools:backgroundTint="@color/core_light_10">


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

        <ImageView
            android:id="@+id/map_bubble_img_thumbnail"
            android:layout_width="75dp"
            android:layout_height="75dp"
            android:padding="10dp"
            android:visibility="gone"
            tools:visibility="visible"
            />

        <org.thoughtcrime.securesms.components.emoji.EmojiTextView
            android:id="@+id/conversation_item_body"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:maxWidth="150dp"
            android:maxLines="2"
            android:ellipsize="end"
            android:layout_gravity="center_vertical"
            android:layout_marginLeft="@dimen/message_bubble_horizontal_padding"
            android:layout_marginRight="@dimen/message_bubble_horizontal_padding"
            android:layout_marginBottom="@dimen/message_bubble_collapsed_footer_padding"
            style="@style/Signal.Text.Body"
            android:paddingTop="@dimen/message_bubble_top_padding"
            android:textColor="?conversation_item_outgoing_text_primary_color"
            android:textColorLink="?conversation_item_outgoing_text_primary_color"
            app:createInBackground="true"
            app:scaleEmojis="true"
            tools:text="Mango pickle lorem ipsum"/>
    </LinearLayout>

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

        <TextView
            android:id="@+id/message_sender"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="-4dp"
            android:layout_marginLeft="@dimen/message_bubble_horizontal_padding"
            android:layout_marginRight="@dimen/message_bubble_horizontal_padding"
            android:layout_marginBottom="@dimen/message_bubble_bottom_padding"
            android:layout_gravity="start"
            android:gravity="start"
            android:clipChildren="false"
            android:clipToPadding="false"
            android:maxLines="1"
            android:ellipsize="end"
            tools:visibility="visible"
            tools:text="Bob"/>

        <org.thoughtcrime.securesms.components.ConversationItemFooter
            android:id="@+id/conversation_item_footer"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="-4dp"
            android:layout_marginLeft="@dimen/message_bubble_horizontal_padding"
            android:layout_marginRight="@dimen/message_bubble_horizontal_padding"
            android:layout_marginBottom="@dimen/message_bubble_bottom_padding"
            android:layout_gravity="end"
            android:gravity="end"
            android:clipChildren="false"
            android:clipToPadding="false"
            android:visibility="gone"
            app:footer_text_color="?attr/conversation_item_outgoing_text_secondary_color"/>
    </LinearLayout>



</LinearLayout>