activity_change_cabinet.xml 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. xmlns:tools="http://schemas.android.com/tools"
  5. android:id="@+id/main"
  6. android:layout_width="match_parent"
  7. android:layout_height="match_parent"
  8. android:animateLayoutChanges="true"
  9. android:background="@mipmap/icon_add_bg"
  10. tools:context=".ui.plan.change.ChangeCabinetActivity"
  11. tools:ignore="PxUsage">
  12. <RelativeLayout
  13. android:id="@+id/rel1"
  14. android:layout_width="match_parent"
  15. android:layout_height="45dp"
  16. android:layout_marginTop="10dp">
  17. <ImageView
  18. android:id="@+id/image"
  19. android:layout_width="30dp"
  20. android:layout_height="30dp"
  21. android:layout_centerVertical="true"
  22. android:layout_marginLeft="20dp" />
  23. <TextView
  24. android:id="@+id/deptName"
  25. android:layout_width="wrap_content"
  26. android:layout_height="wrap_content"
  27. android:layout_centerVertical="true"
  28. android:layout_marginLeft="10dp"
  29. android:layout_toRightOf="@+id/image"
  30. android:text="实验室名称-房间号"
  31. android:textColor="@color/white"
  32. android:textSize="22sp" />
  33. <LinearLayout
  34. android:layout_width="wrap_content"
  35. android:layout_height="wrap_content"
  36. android:layout_centerInParent="true"
  37. android:layout_centerVertical="true"
  38. android:layout_marginTop="2dp">
  39. <TextView
  40. android:id="@+id/tvTitle"
  41. android:layout_width="wrap_content"
  42. android:layout_height="wrap_content"
  43. android:layout_centerHorizontal="true"
  44. android:layout_centerVertical="true"
  45. android:text="化学品智能管理"
  46. android:textColor="@color/white"
  47. android:textSize="24sp"
  48. android:textStyle="bold" />
  49. <TextView
  50. android:id="@+id/nowTime"
  51. android:layout_width="wrap_content"
  52. android:layout_height="wrap_content"
  53. android:layout_marginLeft="6dp"
  54. android:layout_toRightOf="@+id/tvTitle"
  55. android:textColor="@color/white" />
  56. </LinearLayout>
  57. <RelativeLayout
  58. android:id="@+id/loggedIn"
  59. android:layout_width="wrap_content"
  60. android:layout_height="wrap_content"
  61. android:layout_alignParentRight="true"
  62. android:layout_centerVertical="true"
  63. android:gravity="center_vertical"
  64. android:paddingRight="18dp">
  65. <ImageView
  66. android:id="@+id/imageName"
  67. android:layout_width="30dp"
  68. android:layout_height="30dp"
  69. android:layout_centerVertical="true"
  70. android:layout_marginRight="6dp" />
  71. <TextView
  72. android:id="@+id/tvName"
  73. android:layout_width="wrap_content"
  74. android:layout_height="wrap_content"
  75. android:layout_centerVertical="true"
  76. android:layout_marginLeft="6dp"
  77. android:layout_marginRight="6dp"
  78. android:layout_toRightOf="@+id/imageName"
  79. android:text="李XX"
  80. android:textColor="@color/white" />
  81. <ImageView
  82. android:id="@+id/imgOut"
  83. android:layout_width="wrap_content"
  84. android:layout_height="wrap_content"
  85. android:layout_centerVertical="true"
  86. android:layout_marginLeft="6dp"
  87. android:layout_marginRight="6dp"
  88. android:layout_toRightOf="@+id/tvName"
  89. android:background="@mipmap/cshrk_dl_tc" />
  90. <TextView
  91. android:id="@+id/tvOutLogin"
  92. android:layout_width="wrap_content"
  93. android:layout_height="wrap_content"
  94. android:layout_centerVertical="true"
  95. android:layout_marginRight="10dp"
  96. android:layout_toRightOf="@+id/imgOut"
  97. android:text="退出"
  98. android:textColor="@color/white"
  99. android:textSize="16sp" />
  100. </RelativeLayout>
  101. </RelativeLayout>
  102. <RelativeLayout
  103. android:layout_width="match_parent"
  104. android:layout_height="match_parent"
  105. android:layout_below="@+id/rel1"
  106. android:layout_marginLeft="31dp"
  107. android:layout_marginTop="15dp"
  108. android:layout_marginRight="31dp"
  109. android:layout_marginBottom="69dp"
  110. android:background="@drawable/bg_add_chemicals_one">
  111. <TextView
  112. android:id="@+id/count_TV"
  113. android:layout_width="wrap_content"
  114. android:layout_height="wrap_content"
  115. android:layout_centerHorizontal="true"
  116. android:text="1/3" />
  117. <LinearLayout
  118. android:id="@+id/control_LL"
  119. android:layout_width="wrap_content"
  120. android:layout_height="40dp"
  121. android:layout_alignParentBottom="true"
  122. android:layout_centerHorizontal="true"
  123. android:gravity="center_vertical"
  124. android:orientation="horizontal">
  125. <Button
  126. android:id="@+id/cancel_BT"
  127. android:layout_width="150px"
  128. android:layout_height="30dp"
  129. android:layout_marginHorizontal="35px"
  130. android:background="@drawable/bg_closes"
  131. android:text="取消" />
  132. <Button
  133. android:id="@+id/confirm_BT"
  134. android:layout_width="150px"
  135. android:layout_height="30dp"
  136. android:layout_marginHorizontal="35px"
  137. android:background="@drawable/selector_input_select_bt"
  138. android:text="确定"
  139. android:textColor="@color/white" />
  140. </LinearLayout>
  141. <RelativeLayout
  142. android:layout_width="match_parent"
  143. android:layout_height="match_parent"
  144. android:layout_above="@id/control_LL"
  145. android:layout_below="@id/count_TV"
  146. android:layout_margin="10px">
  147. <androidx.viewpager2.widget.ViewPager2
  148. android:id="@+id/cabinet_VP"
  149. android:layout_width="1360px"
  150. android:layout_height="match_parent"
  151. android:layout_centerInParent="true"
  152. android:layout_weight="1" />
  153. <RelativeLayout
  154. android:layout_width="match_parent"
  155. android:layout_height="wrap_content"
  156. android:layout_centerVertical="true"
  157. android:layout_toStartOf="@id/cabinet_VP">
  158. <ImageButton
  159. android:id="@+id/last_BT"
  160. android:layout_width="wrap_content"
  161. android:layout_height="wrap_content"
  162. android:layout_centerInParent="true"
  163. android:background="@mipmap/icon_dcc_z"
  164. android:text="上一页" />
  165. </RelativeLayout>
  166. <RelativeLayout
  167. android:layout_width="match_parent"
  168. android:layout_height="wrap_content"
  169. android:layout_centerVertical="true"
  170. android:layout_toEndOf="@id/cabinet_VP">
  171. <ImageButton
  172. android:id="@+id/next_BT"
  173. android:layout_width="wrap_content"
  174. android:layout_height="wrap_content"
  175. android:layout_centerInParent="true"
  176. android:background="@mipmap/icon_dcc_z"
  177. android:rotation="180"
  178. android:text="下一页" />
  179. </RelativeLayout>
  180. </RelativeLayout>
  181. </RelativeLayout>
  182. </RelativeLayout>