<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/rootView" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/themeColor" android:orientation="vertical"> <RelativeLayout android:layout_width="match_parent" android:layout_height="@dimen/titleViewHeight"> <ImageView android:id="@+id/leftButton" android:layout_width="wrap_content" android:layout_height="match_parent" android:paddingHorizontal="@dimen/dp_10" android:src="@drawable/ic_left" /> <TextView android:id="@+id/recognizeResultView" android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="center" android:text="正在识别中..." android:textColor="@color/white" android:textSize="@dimen/sp_18" android:textStyle="bold" /> <ImageView android:id="@+id/rightButton" android:layout_width="wrap_content" android:layout_height="match_parent" android:layout_alignParentEnd="true" android:paddingHorizontal="@dimen/dp_10" android:src="@drawable/ic_more" /> </RelativeLayout> <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" /> <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>