gift_panel.xml 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. xmlns:tools="http://schemas.android.com/tools"
  5. android:layout_width="match_parent"
  6. android:layout_height="wrap_content"
  7. android:background="@drawable/nim_message_view_bottom"
  8. android:orientation="vertical"
  9. android:padding="8dp"
  10. android:clickable="true">
  11. <RelativeLayout
  12. android:layout_width="match_parent"
  13. android:layout_height="wrap_content"
  14. android:orientation="horizontal"
  15. android:padding="8dp">
  16. <TextView
  17. android:layout_width="wrap_content"
  18. android:layout_height="wrap_content"
  19. android:layout_weight="7"
  20. android:gravity="start"
  21. android:text="出售/求购"
  22. android:textColor="@color/color_gray_cbd0d8" />
  23. <LinearLayout
  24. android:layout_width="match_parent"
  25. android:layout_height="wrap_content"
  26. android:gravity="right"
  27. android:orientation="horizontal">
  28. <TextView
  29. android:id="@+id/gift_panel_balance_TV"
  30. android:layout_width="wrap_content"
  31. android:layout_height="wrap_content"
  32. android:text="余额"
  33. android:textColor="@color/black" />
  34. <TextView
  35. android:layout_width="wrap_content"
  36. android:layout_height="wrap_content"
  37. android:text=" " />
  38. <TextView
  39. android:id="@+id/gift_panel_recharge_TV"
  40. android:layout_width="wrap_content"
  41. android:layout_height="wrap_content"
  42. android:text="@string/rechage"
  43. android:textColor="@color/green_4DC0A4" />
  44. </LinearLayout>
  45. </RelativeLayout>
  46. <LinearLayout
  47. android:layout_width="match_parent"
  48. android:layout_height="wrap_content"
  49. android:orientation="horizontal">
  50. <RadioGroup
  51. android:layout_width="match_parent"
  52. android:layout_height="wrap_content"
  53. android:gravity="center_horizontal"
  54. android:orientation="horizontal">
  55. <RadioButton
  56. android:id="@+id/gift_panel_sell_radio_btn"
  57. android:layout_width="wrap_content"
  58. android:layout_height="wrap_content"
  59. android:text="出售" />
  60. <RadioButton
  61. android:id="@+id/gift_panel_buy_radio_btn"
  62. android:layout_width="wrap_content"
  63. android:layout_height="wrap_content"
  64. android:text="求购" />
  65. </RadioGroup>
  66. </LinearLayout>
  67. <LinearLayout
  68. android:id="@+id/gift_panel_trade_layout"
  69. android:layout_width="match_parent"
  70. android:layout_height="wrap_content"
  71. android:orientation="vertical"
  72. android:visibility="gone">
  73. <LinearLayout
  74. android:layout_width="match_parent"
  75. android:layout_height="wrap_content"
  76. android:orientation="horizontal"
  77. android:paddingLeft="8dp"
  78. android:paddingStart="8dp">
  79. <TextView
  80. android:id="@+id/gift_priority_tip"
  81. android:layout_width="wrap_content"
  82. android:layout_height="wrap_content"
  83. android:layout_weight="9"
  84. android:text="置顶"
  85. android:textColor="@color/black" />
  86. <Spinner
  87. android:id="@+id/gift_panel_spinner"
  88. android:layout_width="wrap_content"
  89. android:layout_height="wrap_content" />
  90. </LinearLayout>
  91. <LinearLayout
  92. android:layout_width="match_parent"
  93. android:layout_height="wrap_content"
  94. android:orientation="horizontal"
  95. android:padding="8dp">
  96. <SeekBar
  97. android:id="@+id/gift_panel_num_seekbar"
  98. android:layout_width="match_parent"
  99. android:layout_height="wrap_content"
  100. android:max="100"
  101. android:progress="1" />
  102. </LinearLayout>
  103. <TextView
  104. android:id="@+id/textView2"
  105. android:layout_width="wrap_content"
  106. android:layout_height="wrap_content"
  107. android:layout_gravity="center"
  108. android:layout_marginBottom="-10dp"
  109. android:layout_marginTop="-5dp"
  110. android:enabled="false"
  111. android:text="一天可发布三条"
  112. android:textColor="@android:color/holo_red_dark"
  113. android:textSize="10sp"
  114. android:visibility="gone" />
  115. <LinearLayout
  116. android:layout_width="match_parent"
  117. android:layout_height="wrap_content"
  118. android:orientation="horizontal"
  119. android:padding="8dp">
  120. <TextView
  121. android:id="@+id/gift_panel_select_person_TV"
  122. android:layout_width="0dp"
  123. android:layout_height="wrap_content"
  124. android:layout_weight="3"
  125. android:text="选择赠送人"
  126. android:textColor="@color/green_4DC0A4"
  127. android:visibility="gone" />
  128. <ImageView
  129. android:id="@+id/gift_panel_add_img"
  130. android:layout_width="40dp"
  131. android:layout_height="40dp"
  132. android:layout_marginRight="10dp"
  133. app:srcCompat="@drawable/add_group_members" />
  134. <EditText
  135. android:id="@+id/gift_panel_gift_message_ET"
  136. android:layout_width="0dp"
  137. android:layout_height="wrap_content"
  138. android:layout_marginRight="5dp"
  139. android:layout_weight="7"
  140. android:background="@drawable/nim_progress_bar_background"
  141. android:hint="输入内容"
  142. android:maxLines="3" />
  143. <Button
  144. android:id="@+id/gift_panel_publish_btn"
  145. android:layout_width="wrap_content"
  146. android:layout_height="wrap_content"
  147. android:layout_weight="0.01"
  148. android:background="@drawable/btn1_selector"
  149. android:text="发送"
  150. android:textColor="@color/white" />
  151. </LinearLayout>
  152. <TextView
  153. android:layout_width="wrap_content"
  154. android:layout_height="wrap_content"
  155. android:layout_gravity="center"
  156. android:layout_marginTop="-10dp"
  157. android:enabled="false"
  158. android:text="长按图片可删除"
  159. android:textColor="@android:color/holo_red_dark"
  160. android:textSize="10sp"
  161. android:visibility="gone" />
  162. <GridLayout
  163. android:id="@+id/gift_panel_photos_layout"
  164. android:layout_width="wrap_content"
  165. android:layout_height="wrap_content"
  166. android:columnCount="5"
  167. android:orientation="horizontal">
  168. </GridLayout>
  169. <HorizontalScrollView
  170. android:layout_width="wrap_content"
  171. android:layout_height="wrap_content">
  172. </HorizontalScrollView>
  173. </LinearLayout>
  174. <TextView
  175. android:id="@+id/gift_panel_empty_tip_TV"
  176. android:layout_width="match_parent"
  177. android:layout_height="match_parent"
  178. android:gravity="center"
  179. android:text="发布消息请选择"
  180. android:padding="64dp"/>
  181. <android.support.v7.widget.RecyclerView
  182. android:id="@+id/gift_panel_recyclerview"
  183. android:layout_width="match_parent"
  184. android:layout_height="wrap_content" />
  185. </LinearLayout>