<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="#00000000">

    <cn.garymb.ygomobile.ui.mycard.mcchat.view.YuanImage
        android:id="@+id/icm_avatar"
        android:layout_width="35dp"
        android:layout_height="35dp"
        android:layout_alignParentRight="true"
        android:layout_marginRight="10dp"
        android:layout_marginTop="5dp"
        android:scaleType="centerCrop" />

    <LinearLayout
        android:id="@+id/icm_dialog"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignTop="@id/icm_avatar"
        android:layout_marginBottom="5dp"
        android:layout_marginLeft="10dp"
        android:layout_marginRight="10dp"
        android:layout_toLeftOf="@id/icm_avatar"
        android:background="@drawable/chat_message_me_background"
        android:descendantFocusability="blocksDescendants"
        android:orientation="vertical"
        android:padding="8dp">

        <TextView
            android:id="@+id/icm_name"
            android:layout_width="0px"
            android:layout_height="0px"
            android:paddingBottom="4dp"
            android:text="name"
            android:textColor="#B8630C"
            android:textSize="13sp"
            android:textStyle="bold" />

        <TextView
            android:id="@+id/icm_message"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="message"
            android:textColor="#000000"
            android:textSize="16sp" />

    </LinearLayout>

</RelativeLayout>

