activity_cart.xml 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout 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:background="@color/white"
  6. android:fitsSystemWindows="true"
  7. android:layout_height="match_parent">
  8. <LinearLayout
  9. android:layout_width="match_parent"
  10. android:layout_height="match_parent"
  11. android:orientation="vertical">
  12. <include
  13. android:id="@+id/titlebar"
  14. layout="@layout/fragment_title" />
  15. <LinearLayout
  16. android:id="@+id/ll_no_data"
  17. android:layout_width="match_parent"
  18. android:layout_gravity="center_vertical"
  19. android:layout_height="match_parent"
  20. android:visibility="gone"
  21. android:gravity="center"
  22. android:orientation="vertical"
  23. >
  24. <ImageView
  25. android:layout_width="64dp"
  26. android:layout_height="64dp"
  27. android:background="@drawable/icon_no_data"
  28. />
  29. <TextView
  30. android:layout_width="wrap_content"
  31. android:layout_height="wrap_content"
  32. android:text="无数据"
  33. android:textSize="@dimen/textsize_22" />
  34. </LinearLayout>
  35. <LinearLayout
  36. android:layout_width="match_parent"
  37. android:layout_height="@dimen/ll_layout_height_0"
  38. android:layout_weight="1"
  39. android:orientation="vertical">
  40. <ListView
  41. android:layout_width="match_parent"
  42. android:layout_height="match_parent"
  43. android:divider="@color/lightgray"
  44. android:dividerHeight="10dp"
  45. android:layout_marginBottom="10dp"
  46. android:descendantFocusability="beforeDescendants"
  47. android:id="@+id/car_recyclerview"
  48. />
  49. </LinearLayout>
  50. <LinearLayout
  51. android:layout_width="match_parent"
  52. android:layout_height="wrap_content"
  53. android:orientation="horizontal">
  54. <LinearLayout
  55. android:layout_width="match_parent"
  56. android:layout_height="match_parent"
  57. android:layout_weight="1"
  58. android:orientation="horizontal"
  59. >
  60. <CheckBox
  61. android:layout_width="wrap_content"
  62. android:layout_height="wrap_content"
  63. android:layout_gravity="center_vertical"
  64. android:layout_marginLeft="10dp"
  65. android:checked="false"
  66. android:button="@drawable/checkbox"
  67. android:id="@+id/btnCheckall"
  68. />
  69. <TextView
  70. android:layout_width="wrap_content"
  71. android:layout_height="wrap_content"
  72. android:layout_gravity="center_vertical"
  73. android:layout_marginLeft="3dp"
  74. android:textColor="@color/black"
  75. android:text="全选"
  76. android:textSize="@dimen/textsize_14"
  77. android:id="@+id/btnCheckalltext"
  78. />
  79. </LinearLayout>
  80. <LinearLayout
  81. android:layout_width="match_parent"
  82. android:layout_height="wrap_content"
  83. android:layout_weight="1"
  84. android:orientation="horizontal"
  85. android:gravity="right|bottom"
  86. >
  87. <EditText
  88. android:id="@+id/focus"
  89. android:layout_width="1dp"
  90. android:layout_height="1dp"
  91. android:background="@null"
  92. />
  93. <Button
  94. android:layout_width="110dp"
  95. android:layout_height="50dp"
  96. android:id="@+id/submitOrder"
  97. android:background="@color/oldred"
  98. android:text="去结算"
  99. android:textColor="@color/white"
  100. android:src="@drawable/rounded_corners_search_bg"
  101. />
  102. </LinearLayout>
  103. </LinearLayout>
  104. </LinearLayout>
  105. </RelativeLayout>