Newer
Older
OperationSite_Test / app / src / main / res / layout / activity_guardians.xml
pengxianhong on 31 Jul 2024 9 KB 回退代码
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:id="@+id/rootView"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@color/white"
    android:orientation="vertical">

    <com.pengxh.kt.lite.widget.TitleBarView
        android:id="@+id/titleView"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@color/mainThemeColor"
        app:tbv_left_image="@drawable/ic_title_left"
        app:tbv_only_show_title="false"
        app:tbv_show_left_image="true"
        app:tbv_show_right_image="false"
        app:tbv_text="监护人员检测"
        app:tbv_text_color="@color/white"
        app:tbv_text_size="@dimen/sp_18" />

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_marginHorizontal="@dimen/dp_10"
        android:layout_marginTop="@dimen/dp_10"
        android:layout_weight="1"
        android:orientation="vertical">

        <FrameLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content">

            <com.shuyu.gsyvideoplayer.video.StandardGSYVideoPlayer
                android:id="@+id/rtspPlayerView"
                android:layout_width="match_parent"
                android:layout_height="220dp"
                android:clickable="false"
                android:focusable="false" />

            <com.casic.br.operationsite.test.widget.VideoRegionView
                android:id="@+id/regionView"
                android:layout_width="match_parent"
                android:layout_height="220dp" />
        </FrameLayout>

        <androidx.core.widget.NestedScrollView
            android:layout_width="match_parent"
            android:layout_height="wrap_content">

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="vertical">

                <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_marginVertical="@dimen/dp_10"
                    android:orientation="horizontal">

                    <Button
                        android:id="@+id/restartVideoButton"
                        android:layout_width="0dp"
                        android:layout_height="wrap_content"
                        android:layout_marginEnd="@dimen/dp_5"
                        android:layout_weight="1"
                        android:background="@drawable/button_check_selector"
                        android:text="打开视频"
                        android:textColor="@color/black" />

                    <Button
                        android:id="@+id/setVideoRegionButton"
                        android:layout_width="0dp"
                        android:layout_height="wrap_content"
                        android:layout_marginStart="@dimen/dp_5"
                        android:layout_weight="1"
                        android:background="@drawable/button_check_selector"
                        android:text="设置电子围栏"
                        android:textColor="@color/black" />
                </LinearLayout>

                <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:orientation="horizontal">

                    <Button
                        android:id="@+id/startVideoCheckButton"
                        android:layout_width="0dp"
                        android:layout_height="wrap_content"
                        android:layout_weight="1"
                        android:background="@drawable/button_check_selector"
                        android:text="人员监测"
                        android:textColor="@color/black" />

                    <Button
                        android:id="@+id/showOtherCommandButton"
                        android:layout_width="0dp"
                        android:layout_height="wrap_content"
                        android:layout_marginHorizontal="@dimen/dp_10"
                        android:layout_weight="1"
                        android:background="@drawable/button_check_selector"
                        android:text="其他指令"
                        android:textColor="@color/black" />

                    <Button
                        android:id="@+id/showControlViewButton"
                        android:layout_width="0dp"
                        android:layout_height="wrap_content"
                        android:layout_weight="1"
                        android:background="@drawable/button_check_selector"
                        android:text="控制设备"
                        android:textColor="@color/black" />
                </LinearLayout>

                <TextView
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_marginVertical="@dimen/dp_10"
                    android:text="首先点击“打开视频”,把所有报警前面的框都取消。有画面后再点击“人员监测”,然后注意管理员,等到他快进入画面时候,把“非法闯入”、“吸烟”勾上,等到他离开画面,再把勾取消。至此,可以不用操作了。等到完全结束,点击“结束此次作业”即可。演练开始严禁测试!!!"
                    android:textColor="@color/orangeTextColor"
                    android:textSize="@dimen/sp_12" />

                <TextView
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:text="报警类型"
                    android:textColor="@color/black"
                    android:textSize="@dimen/sp_14" />

                <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_marginVertical="@dimen/dp_10"
                    android:orientation="horizontal">

                    <CheckBox
                        android:id="@+id/alarmCheckbox"
                        android:layout_width="0dp"
                        android:layout_height="wrap_content"
                        android:layout_weight="1"
                        android:text="声光"
                        android:textSize="@dimen/sp_12" />

                    <CheckBox
                        android:id="@+id/noneSupervisorCheckbox"
                        android:layout_width="0dp"
                        android:layout_height="wrap_content"
                        android:layout_weight="1"
                        android:text="无监护人"
                        android:textSize="@dimen/sp_12" />

                    <CheckBox
                        android:id="@+id/intrudeCheckbox"
                        android:layout_width="0dp"
                        android:layout_height="wrap_content"
                        android:layout_marginHorizontal="@dimen/dp_5"
                        android:layout_weight="1"
                        android:text="非法闯入"
                        android:textSize="@dimen/sp_12" />

                    <LinearLayout
                        android:layout_width="0dp"
                        android:layout_height="wrap_content"
                        android:layout_weight="1"
                        android:gravity="center_vertical"
                        android:orientation="horizontal">

                        <CheckBox
                            android:id="@+id/smokeCheckbox"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:text="吸烟"
                            android:textSize="@dimen/sp_12" />

                        <ImageView
                            android:id="@+id/changeSmokeConfigView"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:layout_marginStart="@dimen/dp_5"
                            android:src="@drawable/ic_edit" />
                    </LinearLayout>
                </LinearLayout>

                <androidx.recyclerview.widget.RecyclerView
                    android:id="@+id/recyclerView"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    app:layoutManager="androidx.recyclerview.widget.GridLayoutManager"
                    app:spanCount="3" />

                <Button
                    android:id="@+id/endTaskButton"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_marginVertical="@dimen/dp_10"
                    android:background="@drawable/button_check_selector"
                    android:text="结束此次作业"
                    android:textColor="@color/black" />
            </LinearLayout>
        </androidx.core.widget.NestedScrollView>
    </LinearLayout>
</LinearLayout>