gift_panel.xml 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  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. <LinearLayout
  106. android:layout_width="match_parent"
  107. android:layout_height="wrap_content"
  108. android:orientation="horizontal"
  109. android:padding="8dp">
  110. <TextView
  111. android:id="@+id/gift_panel_select_person_TV"
  112. android:layout_width="0dp"
  113. android:layout_height="wrap_content"
  114. android:layout_weight="3"
  115. android:text="选择赠送人"
  116. android:textColor="@color/green_4DC0A4"
  117. android:visibility="gone" />
  118. <EditText
  119. android:id="@+id/gift_panel_gift_message_ET"
  120. android:layout_width="0dp"
  121. android:layout_height="wrap_content"
  122. android:layout_weight="7"
  123. android:hint=""
  124. android:maxLines="1" />
  125. <Button
  126. android:id="@+id/gift_panel_publish_btn"
  127. android:layout_width="wrap_content"
  128. android:layout_height="wrap_content"
  129. android:layout_weight="0.01"
  130. android:background="@drawable/btn1_selector"
  131. android:text="发送"
  132. android:textColor="@color/white" />
  133. </LinearLayout>
  134. <HorizontalScrollView
  135. android:layout_width="wrap_content"
  136. android:layout_height="wrap_content">
  137. <LinearLayout
  138. android:id="@+id/gift_panel_photos_layout"
  139. android:layout_width="wrap_content"
  140. android:layout_height="wrap_content"
  141. android:orientation="horizontal">
  142. <ImageView
  143. android:layout_width="48dp"
  144. android:layout_height="48dp"
  145. android:src="@drawable/nim_team_member_add_normal" />
  146. </LinearLayout>
  147. </HorizontalScrollView>
  148. </LinearLayout>
  149. <TextView
  150. android:id="@+id/gift_panel_empty_tip_TV"
  151. android:layout_width="match_parent"
  152. android:layout_height="match_parent"
  153. android:gravity="center"
  154. android:text="发布消息请选择"
  155. android:padding="64dp"/>
  156. <android.support.v7.widget.RecyclerView
  157. android:id="@+id/gift_panel_recyclerview"
  158. android:layout_width="match_parent"
  159. android:layout_height="wrap_content" />
  160. </LinearLayout>