chat_from_item_redpacket.xml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:layout_width="match_parent"
  4. android:layout_height="wrap_content"
  5. android:paddingBottom="@dimen/chat_item_padding_bottom"
  6. android:paddingLeft="@dimen/chat_item_padding_left"
  7. android:paddingRight="@dimen/chat_item_padding_right"
  8. android:paddingTop="@dimen/chat_item_padding_top">
  9. <TextView
  10. android:id="@+id/time_tv"
  11. style="@style/ChattingUISystem"
  12. android:visibility="gone" />
  13. <com.jixin.im.view.HeadView
  14. android:id="@+id/chat_head_iv"
  15. android:layout_width="@dimen/chat_head_size"
  16. android:layout_height="@dimen/chat_head_size"
  17. android:layout_alignParentEnd="true"
  18. android:layout_centerVertical="true"
  19. android:layout_below="@id/time_tv"
  20. android:layout_marginEnd="@dimen/chat_head_right"
  21. android:layout_marginStart="@dimen/chat_head_left"
  22. android:layout_marginTop="@dimen/chat_head_top"
  23. android:contentDescription="@string/app_name"
  24. android:src="@drawable/avatar_normal" />
  25. <TextView
  26. android:id="@+id/nick_name"
  27. android:layout_width="wrap_content"
  28. android:layout_height="wrap_content"
  29. android:layout_below="@id/time_tv"
  30. android:layout_marginTop="@dimen/chat_head_top"
  31. android:layout_toLeftOf="@id/chat_head_iv"
  32. android:text=""
  33. android:textSize="@dimen/SmallerTextSize"
  34. android:visibility="gone" />
  35. <include layout="@layout/include_chat_item_red_packet"
  36. android:layout_width="@dimen/chat_width_red"
  37. android:id="@+id/chat_warp_view"
  38. android:layout_height="@dimen/chat_height_red"
  39. android:layout_marginTop="@dimen/chat_head_top"
  40. android:layout_toStartOf="@id/chat_head_iv"/>
  41. <include layout="@layout/view_holder_state_from" />
  42. <CheckBox
  43. android:id="@+id/chat_msc"
  44. style="@style/CustomCheckBoxTheme"
  45. android:layout_marginTop="@dimen/dp10"
  46. android:layout_width="wrap_content"
  47. android:layout_height="wrap_content"
  48. android:layout_alignTop="@id/chat_warp_view"
  49. android:clickable="false"
  50. android:visibility="gone" />
  51. </RelativeLayout>