123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352 |
- <?xml version="1.0" encoding="utf-8"?>
- <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- xmlns:tools="http://schemas.android.com/tools"
- android:id="@+id/main"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:animateLayoutChanges="true"
- android:background="@mipmap/icon_add_bg"
- tools:context=".ui.plan.PlanAddActivity"
- 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>
- <LinearLayout
- 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">
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_weight="1.5">
- <LinearLayout
- android:id="@+id/count_LL"
- android:layout_width="match_parent"
- android:layout_height="100px"
- android:layout_alignParentBottom="true"
- android:gravity="center"
- android:orientation="horizontal">
- <ImageButton
- android:id="@+id/last_BT"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginEnd="50px"
- android:background="@mipmap/icon_dcc_z" />
- <TextView
- android:id="@+id/countTV"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="0/0"
- android:textColor="#333"
- android:textStyle="bold" />
- <ImageButton
- android:id="@+id/next_BT"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginStart="50px"
- android:background="@mipmap/icon_dcc_z"
- android:rotation="180"
- android:text="下一页" />
- </LinearLayout>
- <TextView
- android:id="@+id/add_index_TV"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_margin="10px"
- android:text="选择存储位置"
- android:textSize="18sp"
- android:textStyle="bold" />
- <androidx.viewpager2.widget.ViewPager2
- android:id="@+id/locker_VP2"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_above="@id/count_LL"
- android:layout_below="@id/add_index_TV"
- android:layout_margin="10px" />
- </RelativeLayout>
- <RelativeLayout
- android:id="@+id/input_RL"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:visibility="gone">
- <Button
- android:id="@+id/input_BT"
- android:layout_width="200px"
- android:layout_height="60px"
- android:layout_alignParentBottom="true"
- android:layout_centerHorizontal="true"
- android:layout_marginBottom="20px"
- android:background="@drawable/selector_input_select_bt"
- android:gravity="center"
- android:text="手动录入化学品"
- android:textColor="@color/white"
- android:textSize="20px" />
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_above="@id/input_BT"
- android:layout_margin="10dp"
- android:orientation="vertical">
- <RelativeLayout
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginVertical="10dp">
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="待存储列表"
- android:textSize="18sp"
- android:textStyle="bold" />
- <TextView
- android:id="@+id/size_TV"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentEnd="true"
- android:text="总数:0"
- android:textSize="18sp"
- android:textStyle="bold" />
- </RelativeLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="40dp"
- android:background="#f5f5f5"
- android:gravity="center_vertical">
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginStart="10dp"
- android:layout_weight="1"
- android:text="名称"
- android:textSize="16sp" />
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:text="CAS"
- android:textSize="16sp" />
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:text="类别"
- android:textSize="16sp" />
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:text="级别"
- android:textSize="16sp" />
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:text="规格"
- android:textSize="16sp" />
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:text="净含量"
- android:textSize="16sp" />
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:gravity="center"
- android:text="数量"
- android:textSize="16sp" />
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_weight="1.1"
- android:textSize="16sp" />
- </LinearLayout>
- <ListView
- android:id="@+id/plan_LV"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:visibility="gone"
- tools:listitem="@layout/item_in_storage" />
- <LinearLayout
- android:id="@+id/scan_LL"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:gravity="center"
- android:orientation="vertical">
- <ImageView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center_horizontal"
- android:src="@mipmap/img_gh_smsb" />
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center_horizontal"
- android:layout_marginTop="10dp"
- android:gravity="center_horizontal"
- android:text="扫描化学品标签\n或手动录入化学品"
- android:textSize="26px" />
- </LinearLayout>
- </LinearLayout>
- </RelativeLayout>
- </LinearLayout>
- <TextView
- android:id="@+id/tvReturn"
- android:layout_width="85dp"
- android:layout_height="30dp"
- android:layout_alignParentBottom="true"
- android:layout_marginBottom="20dp"
- android:background="@drawable/bg_retrun"
- android:gravity="center"
- android:text="返回"
- android:textColor="@color/white"
- android:textSize="10sp" />
- <Button
- android:id="@+id/subAdd"
- 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>
|