Newer
Older
OperationSite_Test / app / src / main / res / layout / activity_supplies.xml
<?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">

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

            <Button
                android:id="@+id/startSuppliesCheckButton"
                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>

        <Button
            android:id="@+id/startVideoCheckButton"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:background="@drawable/button_check_selector"
            android:text="开始视频通话检测"
            android:textColor="@color/black"
            android:visibility="gone" />

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

        <TextView
            android:id="@+id/stepView"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginVertical="@dimen/dp_10"
            android:singleLine="true"
            android:text="画面初始化中,请稍后......"
            android:textColor="@color/black" />

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

        <Button
            android:id="@+id/skipSuppliesCheckButton"
            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>
</LinearLayout>