gift_panel.xml 7.2 KB

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