chatting_item_msg_text_left.xml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:layout_width="fill_parent"
  4. android:layout_height="wrap_content"
  5. android:layout_marginTop="5dp"
  6. android:layout_marginRight="5dp">
  7. <ImageView
  8. android:id="@+id/iv_userhead"
  9. android:layout_width="52dp"
  10. android:layout_height="52dp"
  11. android:layout_alignParentLeft="true"
  12. android:layout_alignParentTop="true"
  13. android:background="@mipmap/icon02"
  14. android:clickable="true"
  15. />
  16. <TextView
  17. android:id="@+id/tv_chatcontent"
  18. style="@style/chat_content_date_style"
  19. android:layout_width="wrap_content"
  20. android:layout_height="wrap_content"
  21. android:layout_marginLeft="10dp"
  22. android:layout_toRightOf="@id/iv_userhead"
  23. android:background="@drawable/chatfrom_bg" />
  24. <TextView
  25. android:id="@+id/tv_time"
  26. android:layout_width="wrap_content"
  27. android:layout_height="wrap_content"
  28. android:layout_marginRight="10dp"
  29. android:layout_toRightOf="@id/tv_chatcontent"
  30. android:clickable="true"
  31. android:focusable="true"
  32. android:gravity="left|center"
  33. android:lineSpacingExtra="2dp"
  34. android:minHeight="50dp"
  35. android:textColor="#ff000000"
  36. android:textSize="15sp" />
  37. <TextView
  38. android:id="@+id/tv_username"
  39. style="@style/chat_text_name_style"
  40. android:layout_width="wrap_content"
  41. android:layout_height="wrap_content"
  42. android:layout_alignParentLeft="true"
  43. android:layout_below="@id/iv_userhead"
  44. android:layout_toLeftOf="@id/tv_chatcontent" />
  45. </RelativeLayout>