<?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/themeColor" 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/themeColor" 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="true" app:tbv_text="场景识别中..." app:tbv_text_color="@color/white" app:tbv_text_size="@dimen/sp_18" /> <FrameLayout android:layout_width="match_parent" android:layout_height="0dp" android:layout_weight="1"> <androidx.camera.view.PreviewView android:id="@+id/cameraPreView" android:layout_width="match_parent" android:layout_height="match_parent" /> <com.casic.br.app.widgets.AITargetDetectView android:id="@+id/detectView" android:layout_width="match_parent" android:layout_height="match_parent" /> <ImageView android:id="@+id/stopButton" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="end" android:layout_margin="@dimen/dp_10" android:src="@drawable/ic_stop" /> <ImageView android:id="@+id/tipsButton" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="end|center" android:layout_marginHorizontal="@dimen/dp_10" android:src="@drawable/ic_tips" /> <ImageView android:id="@+id/addButton" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="end|bottom" android:layout_margin="@dimen/dp_10" android:src="@drawable/ic_add_task" /> <ImageView android:id="@+id/listButton" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="bottom" android:layout_margin="@dimen/dp_10" android:src="@drawable/ic_details" /> </FrameLayout> </LinearLayout>