gift_panel.xml 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  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. <LinearLayout
  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="0dp"
  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. <TextView
  22. android:id="@+id/gift_panel_balance_TV"
  23. android:layout_width="0dp"
  24. android:layout_height="wrap_content"
  25. android:layout_gravity="end"
  26. android:layout_weight="2"
  27. android:text="余额"
  28. android:textColor="@color/black" />
  29. <TextView
  30. android:id="@+id/gift_panel_recharge_TV"
  31. android:layout_width="0dp"
  32. android:layout_height="wrap_content"
  33. android:layout_weight="1"
  34. android:text="@string/rechage"
  35. android:textColor="@color/green_4DC0A4" />
  36. </LinearLayout>
  37. <LinearLayout
  38. android:layout_width="match_parent"
  39. android:layout_height="wrap_content"
  40. android:orientation="horizontal">
  41. <RadioGroup
  42. android:layout_width="match_parent"
  43. android:layout_height="wrap_content"
  44. android:gravity="center_horizontal"
  45. android:orientation="horizontal">
  46. <RadioButton
  47. android:id="@+id/gift_panel_sell_radio_btn"
  48. android:layout_width="wrap_content"
  49. android:layout_height="wrap_content"
  50. android:text="出售" />
  51. <RadioButton
  52. android:id="@+id/gift_panel_buy_radio_btn"
  53. android:layout_width="wrap_content"
  54. android:layout_height="wrap_content"
  55. android:text="求购" />
  56. </RadioGroup>
  57. </LinearLayout>
  58. <LinearLayout
  59. android:id="@+id/gift_panel_trade_layout"
  60. android:layout_width="match_parent"
  61. android:layout_height="wrap_content"
  62. android:orientation="vertical"
  63. android:visibility="gone">
  64. <LinearLayout
  65. android:layout_width="match_parent"
  66. android:layout_height="wrap_content"
  67. android:orientation="horizontal"
  68. android:paddingLeft="8dp"
  69. android:paddingStart="8dp">
  70. <TextView
  71. android:layout_width="wrap_content"
  72. android:layout_height="wrap_content"
  73. android:layout_weight="9"
  74. android:text="置顶" />
  75. <Spinner
  76. android:id="@+id/gift_panel_spinner"
  77. android:layout_width="wrap_content"
  78. android:layout_height="wrap_content" />
  79. </LinearLayout>
  80. <LinearLayout
  81. android:layout_width="match_parent"
  82. android:layout_height="wrap_content"
  83. android:orientation="horizontal"
  84. android:padding="8dp">
  85. <TextView
  86. android:layout_width="0dp"
  87. android:layout_height="wrap_content"
  88. android:layout_weight="2"
  89. android:text="置顶数量" />
  90. <SeekBar
  91. android:id="@+id/gift_panel_num_seekbar"
  92. android:layout_width="0dp"
  93. android:layout_height="wrap_content"
  94. android:layout_weight="9"
  95. android:max="25"
  96. android:progress="1" />
  97. <TextView
  98. android:id="@+id/gift_panel_num_TV"
  99. android:layout_width="0dp"
  100. android:layout_height="wrap_content"
  101. android:layout_weight="1"
  102. android:gravity="center"
  103. android:text="1" />
  104. </LinearLayout>
  105. <TextView
  106. android:id="@+id/textView2"
  107. android:layout_width="wrap_content"
  108. android:layout_height="wrap_content"
  109. android:layout_gravity="center"
  110. android:layout_marginBottom="-5dp"
  111. android:layout_marginTop="-5dp"
  112. android:enabled="false"
  113. android:text="一天可发布三条,道具数量决定快讯排名"
  114. android:textColor="@android:color/holo_red_dark"
  115. android:textSize="10sp" />
  116. <LinearLayout
  117. android:layout_width="match_parent"
  118. android:layout_height="wrap_content"
  119. android:orientation="horizontal"
  120. android:padding="8dp">
  121. <TextView
  122. android:id="@+id/gift_panel_select_person_TV"
  123. android:layout_width="0dp"
  124. android:layout_height="wrap_content"
  125. android:layout_weight="3"
  126. android:text="选择赠送人"
  127. android:textColor="@color/green_4DC0A4"
  128. android:visibility="gone" />
  129. <EditText
  130. android:id="@+id/gift_panel_gift_message_ET"
  131. android:layout_width="0dp"
  132. android:layout_height="wrap_content"
  133. android:layout_weight="7"
  134. android:hint=""
  135. android:maxLines="1" />
  136. <Button
  137. android:id="@+id/gift_panel_publish_btn"
  138. android:layout_width="wrap_content"
  139. android:layout_height="wrap_content"
  140. android:layout_weight="0.01"
  141. android:background="@drawable/btn1_selector"
  142. android:text="发送"
  143. android:textColor="@color/white" />
  144. </LinearLayout>
  145. <HorizontalScrollView
  146. android:layout_width="wrap_content"
  147. android:layout_height="wrap_content">
  148. <LinearLayout
  149. android:id="@+id/gift_panel_photos_layout"
  150. android:layout_width="wrap_content"
  151. android:layout_height="wrap_content"
  152. android:orientation="horizontal">
  153. <ImageView
  154. android:layout_width="48dp"
  155. android:layout_height="48dp"
  156. android:src="@drawable/nim_team_member_add_normal" />
  157. </LinearLayout>
  158. </HorizontalScrollView>
  159. </LinearLayout>
  160. <TextView
  161. android:id="@+id/gift_panel_empty_tip_TV"
  162. android:layout_width="match_parent"
  163. android:layout_height="match_parent"
  164. android:gravity="center"
  165. android:text="发布消息请选择"
  166. android:padding="64dp"/>
  167. <android.support.v7.widget.RecyclerView
  168. android:id="@+id/gift_panel_recyclerview"
  169. android:layout_width="match_parent"
  170. android:layout_height="wrap_content" />
  171. </LinearLayout>