<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) 2013, Redsolution LTD. All rights reserved.

     This file is part of Xabber project; you can redistribute it and/or
     modify it under the terms of the GNU General Public License, Version 3.

     Xabber is distributed in the hope that it will be useful, but
     WITHOUT ANY WARRANTY; without even the implied warranty of
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
     See the GNU General Public License for more details.

     You should have received a copy of the GNU General Public License,
     along with this program. If not, see http://www.gnu.org/licenses/.
-->
<RelativeLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/chat_message_outgoing"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    >

    <FrameLayout
        android:id="@+id/message_balloon"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"

        android:layout_alignParentTop="true"
        android:layout_alignParentRight="true"
        android:layout_alignParentEnd="true"

        android:layout_marginLeft="48dp"
        android:layout_marginStart="48dp"

        android:layout_marginRight="6dp"
        android:layout_marginEnd="6dp"

        android:paddingLeft="12dp"
        android:paddingTop="8dp"
        android:paddingBottom="8dp"
        android:paddingRight="16dp"
        android:paddingEnd="16dp"

        android:background="@drawable/message_outgoing_states"
        >

        <include layout="@layout/chat_message"/>

    </FrameLayout>

    <TextView
        android:id="@+id/message_time"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@+id/message_balloon"
        android:layout_alignParentRight="true"
        android:layout_alignParentEnd="true"

        android:paddingRight="16dp"
        android:paddingEnd="16dp"

        android:textSize="10sp"

        android:text="Feb 19, 2015 4:39 PM"
        />

    <ImageView
        android:id="@+id/message_status_icon"
        android:layout_width="14dp"
        android:layout_height="14dp"
        android:layout_alignBottom="@+id/message_time"
        android:layout_toLeftOf="@+id/message_time"

        android:src="@drawable/ic_message_delivered_18dp"
        />

</RelativeLayout>
