| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395 |
- <?xml version="1.0" encoding="utf-8"?>
- <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:animateLayoutChanges="true"
- android:background="@mipmap/icon_add_bg"
- android:orientation="vertical"
- tools:ignore="PxUsage">
- <RelativeLayout
- android:id="@+id/rel1"
- android:layout_width="match_parent"
- android:layout_height="45dp"
- android:layout_marginTop="10dp">
- <ImageView
- android:id="@+id/image"
- android:layout_width="30dp"
- android:layout_height="30dp"
- android:layout_centerVertical="true"
- android:layout_marginStart="20dp" />
- <TextView
- android:id="@+id/deptName"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_centerVertical="true"
- android:layout_marginStart="10dp"
- android:layout_toEndOf="@+id/image"
- android:text="实验室名称-房间号"
- android:textColor="@color/white"
- android:textSize="22sp" />
- <LinearLayout
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_centerInParent="true"
- android:layout_centerVertical="true"
- android:layout_marginTop="2dp">
- <TextView
- android:id="@+id/tvTitle"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="化学品智能管理"
- android:textColor="@color/white"
- android:textSize="24sp"
- android:textStyle="bold" />
- <TextView
- android:id="@+id/nowTime"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginStart="6dp"
- android:textColor="@color/white" />
- </LinearLayout>
- <RelativeLayout
- android:id="@+id/loggedIn"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentEnd="true"
- android:layout_centerVertical="true"
- android:gravity="center_vertical"
- android:paddingEnd="18dp">
- <ImageView
- android:id="@+id/imageName"
- android:layout_width="30dp"
- android:layout_height="30dp"
- android:layout_centerVertical="true"
- android:layout_marginEnd="6dp" />
- <TextView
- android:id="@+id/tvName"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_centerVertical="true"
- android:layout_marginLeft="6dp"
- android:layout_marginRight="6dp"
- android:layout_toEndOf="@+id/imageName"
- android:text="李XX"
- android:textColor="@color/white" />
- <ImageView
- android:id="@+id/imgOut"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_centerVertical="true"
- android:layout_marginLeft="6dp"
- android:layout_marginRight="6dp"
- android:layout_toEndOf="@+id/tvName"
- android:background="@mipmap/cshrk_dl_tc" />
- <TextView
- android:id="@+id/tvOutLogin"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_centerVertical="true"
- android:layout_marginEnd="10dp"
- android:layout_toEndOf="@+id/imgOut"
- android:text="退出"
- android:textColor="@color/white"
- android:textSize="16sp" />
- </RelativeLayout>
- </RelativeLayout>
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_below="@+id/rel1"
- android:layout_marginLeft="31dp"
- android:layout_marginTop="15dp"
- android:layout_marginRight="31dp"
- android:layout_marginBottom="69dp"
- android:background="@drawable/bg_add_chemicals_one">
- <LinearLayout
- android:id="@+id/control_LL"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentBottom="true"
- android:layout_centerHorizontal="true"
- android:layout_marginVertical="10px"
- android:orientation="horizontal">
- <Button
- android:id="@+id/validate_BT"
- android:layout_width="250px"
- android:layout_height="70px"
- android:layout_marginHorizontal="35px"
- android:background="@drawable/selector_input_select_bt"
- android:text="认证开门"
- android:textColor="@color/white" />
- <Button
- android:id="@+id/retry_BT"
- android:layout_width="250px"
- android:layout_height="70px"
- android:layout_marginHorizontal="35px"
- android:background="@drawable/selector_input_select_bt"
- android:text="批量重试"
- android:textColor="@color/white"
- android:visibility="gone" />
- <LinearLayout
- android:id="@+id/unlock_LL"
- android:layout_width="250px"
- android:layout_height="70px"
- android:background="@drawable/selector_input_select_bt"
- android:gravity="center"
- android:orientation="horizontal"
- android:visibility="gone">
- <ProgressBar
- android:layout_width="wrap_content"
- android:layout_height="wrap_content" />
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center_vertical"
- android:text="开锁中..."
- android:textColor="@color/white" />
- </LinearLayout>
- <Button
- android:id="@+id/save_BT"
- android:layout_width="250px"
- android:layout_height="70px"
- android:layout_marginHorizontal="35px"
- android:background="@drawable/selector_input_select_bt"
- android:text="完成存储"
- android:textColor="@color/white"
- android:visibility="gone" />
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_above="@id/control_LL"
- android:layout_marginTop="10px"
- android:orientation="horizontal">
- <LinearLayout
- android:layout_width="400px"
- android:layout_height="match_parent"
- android:orientation="vertical">
- <LinearLayout
- android:layout_width="360px"
- android:layout_height="wrap_content"
- android:layout_gravity="center_horizontal"
- android:orientation="vertical">
- <TextView
- android:layout_width="match_parent"
- android:layout_height="80px"
- android:background="#2697FF"
- android:gravity="center"
- android:text="同时打开多个柜门\n请联系以下任意人员协助开门"
- android:textColor="@color/white"
- android:textSize="22px" />
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="100px"
- android:orientation="horizontal">
- <TextView
- android:layout_width="120px"
- android:layout_height="wrap_content"
- android:layout_gravity="center_vertical"
- android:layout_marginHorizontal="10px"
- android:text="柜门管理员"
- android:textSize="20px" />
- <TextView
- android:id="@+id/admin_TV"
- android:layout_width="wrap_content"
- android:layout_height="match_parent"
- android:gravity="center_vertical"
- android:textSize="18px" />
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="100px"
- android:orientation="horizontal">
- <TextView
- android:layout_width="120px"
- android:layout_height="wrap_content"
- android:layout_gravity="center_vertical"
- android:layout_marginHorizontal="10px"
- android:text="实验室安全员"
- android:textSize="20px" />
- <TextView
- android:id="@+id/safety_TV"
- android:layout_width="wrap_content"
- android:layout_height="match_parent"
- android:gravity="center_vertical"
- android:textSize="18px" />
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="100px"
- android:orientation="horizontal">
- <TextView
- android:layout_width="120px"
- android:layout_height="wrap_content"
- android:layout_gravity="center_vertical"
- android:layout_marginHorizontal="10px"
- android:text="实验室负责人"
- android:textSize="20px" />
- <TextView
- android:id="@+id/director_TV"
- android:layout_width="wrap_content"
- android:layout_height="match_parent"
- android:gravity="center_vertical"
- android:textSize="18px" />
- </LinearLayout>
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="horizontal">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:orientation="vertical">
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="match_parent"
- android:layout_gravity="end"
- android:layout_weight="1"
- android:gravity="center"
- android:text="柜子" />
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="match_parent"
- android:layout_gravity="end"
- android:layout_weight="1"
- android:gravity="center"
- android:text="柜门" />
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="match_parent"
- android:layout_gravity="end"
- android:layout_weight="1"
- android:drawableStart="@drawable/shape_unlock_success"
- android:drawablePadding="15px"
- android:gravity="center"
- android:text="成功" />
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="match_parent"
- android:layout_gravity="end"
- android:layout_weight="1"
- android:drawableStart="@drawable/shape_unlock_failed"
- android:drawablePadding="15px"
- android:gravity="center"
- android:text="失败" />
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:orientation="vertical">
- <TextView
- android:id="@+id/cabinet_TV"
- android:layout_width="wrap_content"
- android:layout_height="match_parent"
- android:layout_gravity="center_horizontal"
- android:layout_weight="1"
- android:gravity="center" />
- <TextView
- android:id="@+id/door_TV"
- android:layout_width="wrap_content"
- android:layout_height="match_parent"
- android:layout_gravity="center_horizontal"
- android:layout_weight="1"
- android:gravity="center" />
- <TextView
- android:id="@+id/unlocked_TV"
- android:layout_width="wrap_content"
- android:layout_height="match_parent"
- android:layout_gravity="center_horizontal"
- android:layout_weight="1"
- android:gravity="center"
- android:textColor="#0FB525" />
- <TextView
- android:id="@+id/unlock_failed_TV"
- android:layout_width="wrap_content"
- android:layout_height="match_parent"
- android:layout_gravity="center_horizontal"
- android:layout_weight="1"
- android:gravity="center"
- android:textColor="#FF2E2E" />
- </LinearLayout>
- </LinearLayout>
- </LinearLayout>
- <View
- android:layout_width="1px"
- android:layout_height="match_parent"
- android:layout_marginBottom="20px"
- android:background="#a2a2a2" />
- <GridView
- android:id="@+id/unlock_GV"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_margin="5px"
- android:numColumns="3"
- tools:listitem="@layout/item_door_unlock" />
- </LinearLayout>
- </RelativeLayout>
- <Button
- android:id="@+id/exit"
- android:layout_width="85dp"
- android:layout_height="30dp"
- android:layout_alignParentRight="true"
- android:layout_alignParentBottom="true"
- android:layout_marginBottom="20dp"
- android:background="@drawable/bg_retrun_two"
- android:text="结束"
- android:textColor="@color/white"
- android:textSize="10sp" />
- </RelativeLayout>
|