fragment_hardware_management.xml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2. xmlns:tools="http://schemas.android.com/tools"
  3. android:layout_width="match_parent"
  4. android:layout_height="match_parent"
  5. android:background="@color/purple_f5"
  6. android:orientation="vertical"
  7. tools:context="com.zhong.inspection.ui.HardwareManagementFragment">
  8. <LinearLayout
  9. android:layout_width="match_parent"
  10. android:layout_height="wrap_content"
  11. android:layout_marginTop="10dp"
  12. android:layout_marginRight="10dp"
  13. android:background="@color/white"
  14. android:orientation="horizontal"
  15. android:paddingLeft="5dp"
  16. android:paddingTop="10dp"
  17. android:paddingBottom="10dp">
  18. <RelativeLayout
  19. android:id="@+id/rel_view"
  20. android:layout_width="0dp"
  21. android:layout_height="40dp"
  22. android:layout_marginRight="2dp"
  23. android:layout_weight="0.3"
  24. android:background="@drawable/ic_menu_bgm"
  25. android:gravity="center_vertical"
  26. android:paddingRight="4dp">
  27. <TextView
  28. android:layout_width="wrap_content"
  29. android:layout_height="match_parent"
  30. android:layout_gravity="center"
  31. android:gravity="center_vertical"
  32. android:paddingLeft="5dp"
  33. android:text="实验室"
  34. android:textSize="12sp" />
  35. <ImageView
  36. android:layout_width="25dp"
  37. android:layout_height="25dp"
  38. android:layout_alignParentRight="true"
  39. android:layout_centerVertical="true"
  40. android:background="@mipmap/icon_kzjc_zk" />
  41. </RelativeLayout>
  42. <RelativeLayout
  43. android:layout_width="0dp"
  44. android:layout_height="40dp"
  45. android:layout_marginLeft="5dp"
  46. android:layout_weight="0.7"
  47. android:background="@drawable/shape_stroke_10">
  48. <ImageView
  49. android:id="@+id/img_01"
  50. android:visibility="gone"
  51. android:layout_width="wrap_content"
  52. android:layout_height="wrap_content"
  53. android:layout_centerVertical="true"
  54. android:layout_marginLeft="6dp"
  55. android:background="@mipmap/icon_sou_suo"
  56. android:padding="14dp" />
  57. <EditText
  58. android:id="@+id/ed_cont"
  59. android:layout_width="wrap_content"
  60. android:layout_height="match_parent"
  61. android:layout_marginLeft="5dp"
  62. android:layout_toRightOf="@+id/img_01"
  63. android:background="@null"
  64. android:imeOptions="actionSearch"
  65. android:padding="10dp"
  66. android:singleLine="true"
  67. android:hint="名称/型号"
  68. android:textSize="12sp" />
  69. <ImageView
  70. android:id="@+id/tvCancel"
  71. android:layout_width="wrap_content"
  72. android:layout_height="match_parent"
  73. android:layout_alignParentRight="true"
  74. android:layout_marginRight="6dp"
  75. android:padding="6dp"
  76. android:src="@mipmap/icon_clae" />
  77. </RelativeLayout>
  78. </LinearLayout>
  79. <androidx.recyclerview.widget.RecyclerView
  80. android:id="@+id/rv_recycler_view"
  81. android:layout_width="match_parent"
  82. android:layout_height="match_parent"
  83. android:layout_marginLeft="10dp"
  84. android:layout_marginTop="10dp"
  85. android:layout_marginRight="10dp"
  86. android:layout_marginBottom="20dp" />
  87. </LinearLayout>