widget_search.xml 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <layout xmlns:app="http://schemas.android.com/apk/res-auto"
  3. xmlns:android="http://schemas.android.com/apk/res/android" >
  4. <data >
  5. </data >
  6. <LinearLayout
  7. android:layout_width="match_parent"
  8. android:layout_height="wrap_content"
  9. android:focusable="true"
  10. android:focusableInTouchMode="true"
  11. android:orientation="vertical">
  12. <LinearLayout
  13. android:layout_width="match_parent"
  14. android:layout_height="wrap_content"
  15. android:layout_marginLeft="18dp"
  16. android:layout_marginTop="12dp"
  17. android:layout_marginRight="18dp"
  18. android:layout_marginBottom="18dp"
  19. android:gravity="center_vertical"
  20. android:orientation="horizontal">
  21. <com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout
  22. android:layout_width="0dp"
  23. android:layout_height="40dp"
  24. android:layout_weight="1"
  25. android:focusable="true"
  26. android:focusableInTouchMode="true"
  27. android:gravity="center_vertical"
  28. android:orientation="horizontal"
  29. android:paddingLeft="10dp"
  30. android:paddingRight="10dp"
  31. app:qmui_backgroundColor="@color/white"
  32. app:qmui_borderColor="#BEBEBE"
  33. app:qmui_borderWidth="@dimen/dp_1"
  34. app:qmui_radius="@dimen/dp_4">
  35. <ImageView
  36. android:layout_width="13dp"
  37. android:layout_height="13dp"
  38. android:src="@drawable/stock_serch">
  39. </ImageView>
  40. <EditText
  41. android:id="@+id/et_name"
  42. android:layout_width="0dp"
  43. android:layout_height="match_parent"
  44. android:layout_marginLeft="15dp"
  45. android:layout_weight="1"
  46. android:background="@null"
  47. android:gravity="center_vertical"
  48. android:hint="请输入要搜索的内容"
  49. android:textColor="#2F2F31"
  50. android:textColorHint="#929390"
  51. android:textSize="14sp"></EditText>
  52. <ImageView
  53. android:id="@+id/iv_delete"
  54. android:layout_width="14dp"
  55. android:layout_height="14dp"
  56. android:layout_marginLeft="10dp"
  57. android:src="@drawable/stock_delete">
  58. </ImageView>
  59. </com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout>
  60. <TextView
  61. android:id="@+id/tv_search"
  62. android:layout_width="wrap_content"
  63. android:layout_height="wrap_content"
  64. android:layout_marginLeft="18dp"
  65. android:gravity="center|left"
  66. android:text="搜索"
  67. android:textColor="#3274F6"
  68. android:textSize="15sp">
  69. </TextView>
  70. </LinearLayout>
  71. </LinearLayout>
  72. </layout >