<?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: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="match_parent" android:background="@color/mainBackColor" android:orientation="vertical"> <!-- 先随便写个高度,代码会动态计算高度 --> <FrameLayout android:id="@+id/fragmentContainer" android:layout_width="match_parent" android:layout_height="200dp"> <VideoView android:id="@+id/videoSurfaceView" android:layout_width="match_parent" android:layout_height="match_parent" /> <com.casic.br.operationsite.widgets.VideoRegionView android:id="@+id/regionView" android:layout_width="match_parent" android:layout_height="match_parent" /> </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:layout_margin="@dimen/dp_15" android:orientation="vertical"> <Button android:id="@+id/startRtspButton" style="@style/MainButtonStyle" android:text="打开摄像头" /> <Button android:id="@+id/saveCameraRegionButton" style="@style/MainButtonStyle" android:layout_marginTop="@dimen/dp_15" android:text="保存区域" /> </LinearLayout> </androidx.core.widget.NestedScrollView> </LinearLayout> </LinearLayout>