gift_panel.xml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:orientation="vertical" android:layout_width="match_parent"
  4. android:layout_height="wrap_content"
  5. android:padding="8dp"
  6. android:background="@drawable/nim_message_view_bottom"
  7. >
  8. <LinearLayout
  9. android:layout_width="match_parent"
  10. android:layout_height="wrap_content"
  11. android:orientation="horizontal"
  12. android:padding="8dp">
  13. <TextView
  14. android:layout_weight="7"
  15. android:layout_width="0dp"
  16. android:layout_height="wrap_content"
  17. android:text="赠送礼物"
  18. android:textColor="@color/color_gray_cbd0d8"
  19. android:gravity="start"/>
  20. <TextView
  21. android:id="@+id/gift_panel_balance_TV"
  22. android:layout_weight="2"
  23. android:layout_width="0dp"
  24. android:layout_height="wrap_content"
  25. android:text="余额"
  26. android:textColor="@color/black"
  27. android:layout_gravity="end" />
  28. <TextView
  29. android:id="@+id/gift_panel_recharge_TV"
  30. android:layout_weight="1"
  31. android:layout_width="0dp"
  32. android:layout_height="wrap_content"
  33. android:text="@string/rechage"
  34. android:textColor="@color/green_4DC0A4"/>
  35. </LinearLayout>
  36. <LinearLayout
  37. android:layout_width="match_parent"
  38. android:layout_height="wrap_content"
  39. android:orientation="horizontal"
  40. android:padding="8dp">
  41. <TextView
  42. android:id="@+id/gift_panel_select_person_TV"
  43. android:layout_weight="3"
  44. android:layout_width="0dp"
  45. android:layout_height="wrap_content"
  46. android:text="选择赠送人"
  47. android:textColor="@color/green_4DC0A4"/>
  48. <EditText
  49. android:id="@+id/gift_panel_gift_message_ET"
  50. android:layout_weight="7"
  51. android:layout_width="0dp"
  52. android:layout_height="wrap_content"
  53. android:hint="请输入赠言"/>
  54. </LinearLayout>
  55. <LinearLayout
  56. android:layout_width="match_parent"
  57. android:layout_height="wrap_content"
  58. android:orientation="horizontal"
  59. android:padding="8dp">
  60. <TextView
  61. android:layout_weight="2"
  62. android:layout_width="0dp"
  63. android:layout_height="wrap_content"
  64. android:text="数量"/>
  65. <SeekBar
  66. android:id="@+id/gift_panel_num_seekbar"
  67. android:layout_weight="9"
  68. android:layout_width="0dp"
  69. android:layout_height="wrap_content"
  70. android:max="25"
  71. android:progress="1"/>
  72. <TextView
  73. android:id="@+id/gift_panel_num_TV"
  74. android:layout_weight="1"
  75. android:layout_width="0dp"
  76. android:layout_height="wrap_content"
  77. android:text="1"
  78. android:gravity="center"/>
  79. </LinearLayout>
  80. <android.support.v7.widget.RecyclerView
  81. android:id="@+id/gift_panel_recyclerview"
  82. android:layout_width="match_parent"
  83. android:layout_height="wrap_content"/>
  84. </LinearLayout>