activity_search.xml 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  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/gray_bg"
  6. android:orientation="vertical">
  7. <LinearLayout
  8. android:layout_width="match_parent"
  9. android:layout_height="50dp"
  10. android:background="@color/white"
  11. android:gravity="center_vertical"
  12. android:orientation="horizontal">
  13. <LinearLayout
  14. android:id="@+id/ll_search"
  15. android:layout_width="0dp"
  16. android:layout_height="31dp"
  17. android:layout_marginLeft="14dp"
  18. android:layout_weight="1"
  19. android:background="@drawable/corners_stork_blue_0070_5dp"
  20. android:gravity="center_vertical"
  21. android:orientation="horizontal">
  22. <View
  23. android:id="@+id/v_search"
  24. android:layout_width="14dp"
  25. android:layout_height="14dp"
  26. android:layout_marginLeft="10dp"
  27. android:layout_marginRight="5dp"
  28. android:background="@mipmap/ic_search_gray" />
  29. <EditText
  30. android:id="@+id/et_search"
  31. android:layout_width="0dp"
  32. android:layout_height="match_parent"
  33. android:layout_weight="1"
  34. android:background="@null"
  35. android:gravity="center_vertical"
  36. android:hint="@string/home_search_title"
  37. android:imeOptions="actionSearch"
  38. android:singleLine="true"
  39. android:textColor="@color/text_black"
  40. android:textColorHint="@color/text_gray_cc"
  41. android:textSize="@dimen/px36_12sp" />
  42. </LinearLayout>
  43. <TextView
  44. android:id="@+id/tv_cancel"
  45. android:layout_width="60dp"
  46. android:layout_height="match_parent"
  47. android:gravity="center"
  48. android:text="@string/cancel"
  49. android:textColor="@color/text_black_44"
  50. android:textSize="@dimen/px45_15sp" />
  51. </LinearLayout>
  52. <RelativeLayout
  53. android:layout_width="match_parent"
  54. android:layout_height="match_parent">
  55. <LinearLayout
  56. android:id="@+id/ll_history"
  57. android:layout_width="match_parent"
  58. android:layout_height="match_parent"
  59. android:layout_marginTop="30dp"
  60. android:orientation="vertical"
  61. android:paddingRight="15dp"
  62. android:paddingLeft="15dp">
  63. <LinearLayout
  64. android:layout_width="match_parent"
  65. android:layout_height="wrap_content"
  66. android:gravity="center_vertical"
  67. android:orientation="horizontal">
  68. <TextView
  69. android:layout_width="0dp"
  70. android:layout_height="wrap_content"
  71. android:layout_weight="1"
  72. android:text="@string/search_history"
  73. android:textColor="@color/text_black"
  74. android:textSize="@dimen/px39_13sp" />
  75. <View
  76. android:id="@+id/v_clear"
  77. android:layout_width="12dp"
  78. android:layout_height="17dp"
  79. android:background="@mipmap/ic_clear_search" />
  80. </LinearLayout>
  81. <com.donkingliang.labels.LabelsView xmlns:app="http://schemas.android.com/apk/res-auto"
  82. android:id="@+id/lv_history"
  83. android:layout_width="match_parent"
  84. android:layout_height="wrap_content"
  85. android:layout_marginTop="19dp"
  86. app:labelBackground="@drawable/corners_gray_eb_5dp"
  87. app:labelTextColor="@color/text_black_66"
  88. app:labelTextPaddingBottom="7dp"
  89. app:labelTextPaddingLeft="14dp"
  90. app:labelTextPaddingRight="14dp"
  91. app:labelTextPaddingTop="7dp"
  92. app:labelTextSize="@dimen/px39_13sp"
  93. app:lineMargin="10dp"
  94. app:selectType="NONE"
  95. app:wordMargin="10dp" />
  96. <TextView
  97. android:layout_width="match_parent"
  98. android:layout_height="wrap_content"
  99. android:layout_marginTop="24dp"
  100. android:text="@string/search_host"
  101. android:textColor="@color/text_black"
  102. android:textSize="@dimen/px39_13sp" />
  103. <com.donkingliang.labels.LabelsView xmlns:app="http://schemas.android.com/apk/res-auto"
  104. android:id="@+id/lv_hot"
  105. android:layout_width="match_parent"
  106. android:layout_height="wrap_content"
  107. android:layout_marginTop="19dp"
  108. app:labelBackground="@drawable/corners_gray_eb_5dp"
  109. app:labelTextColor="@color/text_black_66"
  110. app:labelTextPaddingBottom="7dp"
  111. app:labelTextPaddingLeft="14dp"
  112. app:labelTextPaddingRight="14dp"
  113. app:labelTextPaddingTop="7dp"
  114. app:labelTextSize="@dimen/px39_13sp"
  115. app:lineMargin="10dp"
  116. app:selectType="NONE"
  117. app:wordMargin="10dp" />
  118. </LinearLayout>
  119. <LinearLayout
  120. android:id="@+id/ll_list"
  121. android:layout_width="match_parent"
  122. android:layout_height="match_parent"
  123. android:orientation="vertical"
  124. android:visibility="gone">
  125. <com.tongyu.luck.happywork.baselibrary.widget.refresh.ProgressRefreshLayout
  126. android:id="@+id/prl_refresh"
  127. android:layout_width="match_parent"
  128. android:layout_height="match_parent">
  129. <ListView
  130. android:id="@+id/iv_job"
  131. android:layout_width="match_parent"
  132. android:layout_height="match_parent"
  133. android:divider="@null"
  134. android:dividerHeight="0px" />
  135. </com.tongyu.luck.happywork.baselibrary.widget.refresh.ProgressRefreshLayout>
  136. </LinearLayout>
  137. </RelativeLayout>
  138. </LinearLayout>