activity_order_search.xml 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  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="match_parent"
  5. android:background="@color/white"
  6. android:fitsSystemWindows="true"
  7. android:orientation="vertical" >
  8. <LinearLayout
  9. android:layout_width="match_parent"
  10. android:layout_height="wrap_content"
  11. android:orientation="horizontal" >
  12. <LinearLayout
  13. android:layout_width="match_parent"
  14. android:layout_height="35dp"
  15. android:layout_gravity="center_vertical"
  16. android:layout_marginBottom="10dp"
  17. android:layout_marginLeft="15dp"
  18. android:layout_marginTop="10dp"
  19. android:layout_weight="1"
  20. android:background="@drawable/rounded_corners_search_bg"
  21. android:orientation="horizontal" >
  22. <TextView
  23. android:layout_width="wrap_content"
  24. android:layout_height="wrap_content"
  25. android:layout_gravity="center_vertical"
  26. android:layout_marginLeft="10dp"
  27. android:text="唯一编码:"
  28. android:textColor="@color/black"
  29. android:textSize="@dimen/textsize_13" />
  30. <EditText
  31. android:id="@+id/edtOnlyCode"
  32. android:layout_width="match_parent"
  33. android:layout_height="wrap_content"
  34. android:layout_gravity="center_vertical"
  35. android:layout_marginLeft="10dp"
  36. android:background="@null"
  37. android:hint="请输入或扫描唯一编码"
  38. android:imeOptions="actionGo"
  39. android:singleLine="true"
  40. android:textSize="@dimen/textsize_13" />
  41. </LinearLayout>
  42. <ImageView
  43. android:id="@+id/ivScan"
  44. android:layout_width="25dp"
  45. android:layout_height="25dp"
  46. android:layout_gravity="center_vertical"
  47. android:layout_marginLeft="10dp"
  48. android:layout_marginRight="10dp"
  49. android:src="@drawable/scan" />
  50. </LinearLayout>
  51. <LinearLayout
  52. android:id="@+id/ll_no_data"
  53. android:layout_width="match_parent"
  54. android:layout_height="match_parent"
  55. android:layout_gravity="center_vertical"
  56. android:gravity="center"
  57. android:visibility="gone"
  58. android:orientation="vertical" >
  59. <ImageView
  60. android:layout_width="64dp"
  61. android:layout_height="64dp"
  62. android:background="@drawable/icon_no_data" />
  63. <TextView
  64. android:layout_width="wrap_content"
  65. android:layout_height="wrap_content"
  66. android:text="无数据"
  67. android:textSize="@dimen/textsize_22" />
  68. </LinearLayout>
  69. <LinearLayout
  70. android:layout_width="match_parent"
  71. android:layout_height="10dp"
  72. android:background="@color/lightgray"
  73. android:orientation="vertical" />
  74. <LinearLayout
  75. android:id="@+id/ll_filter_zero_can_sales_quantity"
  76. android:layout_width="match_parent"
  77. android:layout_height="wrap_content"
  78. android:visibility="gone"
  79. android:layout_marginTop="5dp"
  80. android:orientation="vertical">
  81. <LinearLayout
  82. android:layout_width="match_parent"
  83. android:layout_height="wrap_content"
  84. android:gravity="center"
  85. android:orientation="horizontal">
  86. <CheckBox
  87. android:id="@+id/ck_filter_zero_can_sales_quantity"
  88. android:layout_width="wrap_content"
  89. android:layout_height="wrap_content"
  90. android:layout_marginLeft="10dp"
  91. android:button="@drawable/checkbox"
  92. android:checked="false"
  93. android:focusable="false"
  94. android:focusableInTouchMode="false"
  95. android:gravity="center" />
  96. <TextView
  97. android:id="@+id/tv_zero_can_sales_quantity"
  98. android:layout_width="wrap_content"
  99. android:layout_height="wrap_content"
  100. android:layout_marginLeft="@dimen/tv_layout_margin_10"
  101. android:text="过滤零可售量"
  102. android:textColor="@color/black"
  103. android:textSize="@dimen/textsize_14" />
  104. </LinearLayout>
  105. <View
  106. android:layout_width="match_parent"
  107. android:layout_marginTop="5dp"
  108. android:layout_height="10dp"
  109. android:background="@color/lightgray"
  110. />
  111. </LinearLayout>
  112. <LinearLayout
  113. android:layout_width="match_parent"
  114. android:layout_height="wrap_content"
  115. android:layout_marginTop="3dp"
  116. android:layout_gravity="center_vertical"
  117. android:background="@color/white"
  118. android:orientation="vertical" >
  119. <ListView
  120. android:id="@+id/orderList"
  121. android:layout_width="match_parent"
  122. android:layout_height="wrap_content"
  123. android:cacheColorHint="@null"
  124. android:divider="@color/lightgray"
  125. android:layout_marginBottom="10dp"
  126. android:dividerHeight="10dp"
  127. android:scrollbars="vertical" />
  128. </LinearLayout>
  129. </LinearLayout>