chat_from_item_video.xml 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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. >
  6. <TextView
  7. android:id="@+id/time_tv"
  8. style="@style/ChattingUISystem"
  9. android:layout_centerHorizontal="true"
  10. android:layout_gravity="center_horizontal"
  11. android:layout_marginTop="5dp"
  12. android:background="@drawable/chatsystem_bg"
  13. android:gravity="center" />
  14. <CheckBox
  15. android:id="@+id/cb_remove"
  16. android:layout_width="wrap_content"
  17. android:layout_height="wrap_content"
  18. android:layout_alignParentRight="true"
  19. android:layout_below="@+id/time_tv"
  20. android:layout_marginTop="15dp"
  21. android:visibility="gone"/>
  22. <RelativeLayout
  23. android:layout_below="@+id/time_tv"
  24. android:layout_toLeftOf="@+id/cb_remove"
  25. android:layout_width="fill_parent"
  26. android:layout_height="wrap_content"
  27. android:gravity="right"
  28. android:orientation="horizontal"
  29. android:padding="3dip" >
  30. <ImageView
  31. android:id="@+id/chat_head_iv"
  32. android:layout_width="48dip"
  33. android:layout_height="48dip"
  34. android:layout_alignParentRight="true"
  35. android:contentDescription="@string/app_name"
  36. android:src="@drawable/avatar_normal" />
  37. <TextView
  38. android:id="@+id/nick_name"
  39. android:layout_width="wrap_content"
  40. android:layout_height="wrap_content"
  41. android:layout_marginRight="5dp"
  42. android:layout_toLeftOf="@+id/chat_head_iv"
  43. android:textSize="@dimen/SmallerTextSize" />
  44. <RelativeLayout
  45. android:id="@+id/chat_content_layout"
  46. android:layout_width="275dp"
  47. android:layout_height="wrap_content"
  48. android:layout_below="@+id/nick_name"
  49. android:layout_toLeftOf="@+id/chat_head_iv" >
  50. <FrameLayout
  51. android:id="@+id/chat_from_warp_view"
  52. android:layout_width="wrap_content"
  53. android:layout_height="wrap_content"
  54. android:layout_alignParentRight="true"
  55. android:layout_alignParentTop="true"
  56. android:background="@drawable/chat_bg_blue_press"
  57. android:clickable="true"
  58. android:focusable="true"
  59. android:gravity="center"
  60. android:orientation="vertical" >
  61. <!-- 所有Item该布局的子布局不能超过210dp -->
  62. <ImageView
  63. android:id="@+id/chat_from_thumb"
  64. android:layout_width="wrap_content"
  65. android:layout_height="wrap_content"
  66. android:adjustViewBounds="true"
  67. android:contentDescription="@string/app_name"
  68. android:maxWidth="210dp"
  69. android:scaleType="fitXY"
  70. android:src="@drawable/defaultpic" />
  71. <ImageView
  72. android:layout_width="40dp"
  73. android:layout_height="40dp"
  74. android:layout_gravity="center"
  75. android:background="@drawable/detail_gray_button"
  76. android:contentDescription="@string/app_name"
  77. android:padding="5dp"
  78. android:src="@drawable/feed_main_player_play" />
  79. </FrameLayout>
  80. <ProgressBar
  81. android:id="@+id/progress"
  82. style="@android:style/Widget.ProgressBar.Small"
  83. android:layout_width="wrap_content"
  84. android:layout_height="wrap_content"
  85. android:layout_centerVertical="true"
  86. android:layout_marginRight="3dp"
  87. android:layout_toLeftOf="@id/chat_from_warp_view" />
  88. <ImageView
  89. android:id="@+id/failed_img_view"
  90. android:layout_width="wrap_content"
  91. android:layout_height="wrap_content"
  92. android:layout_centerVertical="true"
  93. android:layout_marginRight="3dp"
  94. android:layout_toLeftOf="@id/chat_from_warp_view"
  95. android:background="@drawable/im_send_failed_bg"
  96. android:contentDescription="@string/app_name"
  97. android:visibility="gone" />
  98. </RelativeLayout>
  99. </RelativeLayout>
  100. </RelativeLayout>