123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193 |
- <?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:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="@color/purple_f5"
- tools:context="com.zhong.inspection.ui.RandomClapActivity">
- <include
- android:id="@+id/tool_bar"
- layout="@layout/title_toolbar" />
- <RelativeLayout
- android:id="@+id/rel_hand_clap_view"
- android:layout_width="match_parent"
- android:layout_height="40dp"
- android:layout_below="@+id/tool_bar"
- android:background="@color/white"
- android:paddingLeft="10dp"
- android:paddingRight="10dp">
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_centerVertical="true"
- android:text="随手拍管理"
- android:textColor="@color/black" />
- <ImageView
- android:layout_width="20dp"
- android:layout_height="20dp"
- android:layout_alignParentRight="true"
- android:layout_centerVertical="true"
- android:background="@mipmap/icon_sspsc_gd" />
- </RelativeLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_below="@+id/rel_hand_clap_view"
- android:layout_marginTop="10dp"
- android:background="@color/white"
- android:orientation="vertical"
- android:paddingLeft="10dp"
- android:paddingRight="10dp">
- <TextView
- android:layout_width="match_parent"
- android:layout_height="35dp"
- android:gravity="center_vertical"
- android:text="实验室"
- android:textColor="@color/black" />
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="35dp"
- android:background="@drawable/ic_bgm_edit_user">
- <ImageView
- android:id="@+id/img_view"
- android:layout_width="25dp"
- android:layout_height="25dp"
- android:layout_centerVertical="true"
- android:layout_marginLeft="6dp"
- android:visibility="gone"
- android:background="@mipmap/icon_sou_suo" />
- <TextView
- android:id="@+id/ed_subject_name"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_centerVertical="true"
- android:layout_marginLeft="4dp"
- android:layout_toRightOf="@+id/img_view"
- android:background="@null"
- android:gravity="start|center"
- android:hint="搜索实验室或房间号"
- android:textSize="14sp" />
- </RelativeLayout>
- <TextView
- android:layout_width="match_parent"
- android:layout_height="35dp"
- android:gravity="center_vertical"
- android:text="学院"
- android:textColor="@color/black" />
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:visibility="gone">
- <TextView
- android:id="@+id/tv_college_name"
- android:layout_width="match_parent"
- android:layout_height="35dp"
- android:background="@drawable/ic_bgm_item_bm"
- android:gravity="center_vertical"
- android:visibility="gone" />
- <Spinner
- android:id="@+id/sp_college_name"
- android:layout_width="match_parent"
- android:layout_height="35dp"
- android:background="@drawable/ic_bgm_edit_user"
- android:gravity="center_vertical" />
- <ImageView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentRight="true"
- android:layout_centerVertical="true"
- android:layout_marginRight="10dp"
- android:background="@mipmap/icon_kzjc_zk" />
- </RelativeLayout>
- <TextView
- android:id="@+id/tv_dept_name"
- android:layout_width="match_parent"
- android:layout_height="35dp"
- android:gravity="center_vertical"
- android:background="@drawable/ic_bgm_edit_user" />
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="35dp"
- android:gravity="center"
- android:text="隐患描述"
- android:textColor="@color/black" />
- <EditText
- android:id="@+id/ed_hazard_describe"
- android:layout_width="match_parent"
- android:layout_height="80dp"
- android:background="@drawable/ic_bgm_edit_user"
- android:gravity="start"
- android:ellipsize="end"
- android:maxEms="50"
- android:hint="请输入描述"
- android:textSize="14sp" />
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="35dp">
- <TextView
- android:id="@+id/tv_01"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_centerVertical="true"
- android:text="隐患照片"
- android:textColor="@color/black" />
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_centerVertical="true"
- android:layout_marginLeft="10dp"
- android:layout_toRightOf="@+id/tv_01"
- android:text="最多上传5张"
- android:textSize="13sp" />
- </RelativeLayout>
- <androidx.recyclerview.widget.RecyclerView
- android:id="@+id/img_rv_recycler"
- android:layout_width="match_parent"
- android:layout_height="wrap_content" />
- </LinearLayout>
- <TextView
- android:id="@+id/tv_commit"
- android:layout_width="match_parent"
- android:layout_height="45dp"
- android:layout_alignParentBottom="true"
- android:background="@color/purple_fa"
- android:gravity="center"
- android:text="提交"
- android:textColor="@color/white" />
- <TextView
- android:id="@+id/tv_random_clap"
- android:layout_width="match_parent"
- android:layout_height="40dp"
- android:layout_above="@+id/tv_commit"
- android:layout_marginLeft="40dp"
- android:layout_marginRight="40dp"
- android:layout_marginBottom="30dp"
- android:background="@drawable/ic_bgm_sui_shou_ji"
- android:gravity="center"
- android:text="随手拍上报记录"
- android:textColor="@color/purple_fa" />
- </RelativeLayout>
|