<?xml version="1.0" encoding="utf-8"?> <androidx.core.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="wrap_content"> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <com.pengxh.kt.lite.widget.SteeringWheelView android:id="@+id/steeringWheelView" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_margin="@dimen/dp_10" android:background="@drawable/bg_solid_layout_blue_10" android:gravity="center" android:paddingVertical="@dimen/dp_10" app:ctrl_diameter="260dp" /> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginHorizontal="@dimen/dp_10" android:orientation="horizontal"> <RelativeLayout android:layout_width="0dp" android:layout_height="@dimen/dp_55" android:layout_marginEnd="@dimen/dp_5" android:layout_weight="1" android:background="@drawable/bg_solid_layout_blue_10"> <ImageButton android:id="@+id/upScaleButton" style="@style/ScaleButtonStyle" android:src="@drawable/ic_plus" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true" android:text="焦距" android:textColor="@color/mainThemeColor" /> <ImageButton android:id="@+id/downScaleButton" style="@style/ScaleButtonStyle" android:layout_alignParentEnd="true" android:src="@drawable/ic_minus" /> </RelativeLayout> <RelativeLayout android:layout_width="0dp" android:layout_height="@dimen/dp_55" android:layout_marginStart="@dimen/dp_5" android:layout_weight="1" android:background="@drawable/bg_solid_layout_blue_10"> <ImageButton android:id="@+id/accelerateButton" style="@style/ScaleButtonStyle" android:src="@drawable/ic_plus" /> <TextView android:id="@+id/currentSpeedView" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true" android:text="速度:1" android:textColor="@color/mainThemeColor" /> <ImageButton android:id="@+id/decelerationButton" style="@style/ScaleButtonStyle" android:layout_alignParentEnd="true" android:src="@drawable/ic_minus" /> </RelativeLayout> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="@dimen/dp_55" android:layout_margin="@dimen/dp_10" android:background="@drawable/bg_solid_layout_blue_10" android:gravity="center" android:orientation="horizontal"> <!-- 用Button样式是为了和下面的按钮样式一致 --> <TextView style="@style/Widget.MaterialComponents.Button.TextButton" android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="1" android:text="预置点" /> <androidx.appcompat.widget.AppCompatSpinner android:id="@+id/pointSpinner" android:layout_width="0dp" android:layout_height="match_parent" android:layout_margin="@dimen/dp_5" android:layout_weight="1" android:entries="@array/point_index_array" /> <ImageButton android:id="@+id/addPointButton" style="@style/ScaleButtonStyle" android:src="@drawable/ic_plus" /> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="@dimen/dp_55" android:layout_marginHorizontal="@dimen/dp_10" android:background="@drawable/bg_solid_layout_blue_10" android:gravity="center" android:orientation="horizontal"> <Button android:id="@+id/startInspectionButton" style="@style/Widget.MaterialComponents.Button.TextButton" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" android:text="开始巡航" /> <Button android:id="@+id/managePointButton" style="@style/Widget.MaterialComponents.Button.TextButton" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" android:text="管理预置点" /> <Button android:id="@+id/stopInspectionButton" style="@style/Widget.MaterialComponents.Button.TextButton" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" android:text="停止巡航" /> </LinearLayout> </LinearLayout> </androidx.core.widget.NestedScrollView>