gift_panel.xml 7.1 KB

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