1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- <?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="@color/white"
- android:orientation="horizontal">
- <ImageView
- android:id="@+id/img_message_img"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentLeft="true"
- android:layout_margin="@dimen/space_10"
- android:src="@mipmap/user_img_p" />
- <LinearLayout
- android:id="@+id/layout"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_alignParentTop="true"
- android:layout_alignTop="@id/img_message_img"
- android:layout_margin="@dimen/space_10"
- android:layout_toRightOf="@id/img_message_img"
- android:gravity="center"
- android:orientation="horizontal">
- <TextView
- android:id="@+id/tv_message_name"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:lines="1"
- android:text="@string/setting_name_phone"
- android:textColor="@color/listitem_black"
- android:textSize="@dimen/text_size_15" />
- <TextView
- android:id="@+id/tv_message_data"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_weight="2"
- android:gravity="right"
- android:lines="1"
- android:text="@string/fragment_message_item_data" />
- </LinearLayout>
- <TextView
- android:id="@+id/tv_message_msg"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignBottom="@id/img_message_img"
- android:layout_marginLeft="@dimen/space_10"
- android:layout_toRightOf="@id/img_message_img"
- android:lines="1"
- android:text="@string/fragment_message_item_msg"
- android:textSize="@dimen/text_size_13" />
- <View
- android:layout_width="match_parent"
- android:layout_height="@dimen/space_1"
- android:layout_alignParentBottom="true"
- android:background="@color/gray" />
- </RelativeLayout>
|