<?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"
|
xmlns:tools="http://schemas.android.com/tools"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:orientation="vertical"
|
tools:context=".MainActivity">
|
<!-- 状态区域-->
|
<LinearLayout
|
android:background="#334455"
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
android:layout_weight="4">
|
</LinearLayout>
|
<RelativeLayout
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
android:layout_weight="6">
|
<Button
|
android:id="@+id/btn_stop"
|
android:layout_width="100sp"
|
android:layout_height="100sp"
|
android:layout_margin="30sp"
|
android:text="STOP"
|
android:textSize="20sp"
|
android:layout_centerInParent="true"
|
android:backgroundTint="#F62727" />
|
|
<com.google.android.material.button.MaterialButton
|
android:id="@+id/btn_go_forward"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="10sp"
|
android:text="前进"
|
android:layout_centerHorizontal="true"
|
app:cornerRadius="5dp"
|
android:paddingLeft="10dp"
|
android:paddingRight="10dp"
|
android:minWidth="10dp"
|
android:backgroundTint="#2196F3" />
|
|
<com.google.android.material.button.MaterialButton
|
android:id="@+id/btn_go_backward"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="后退"
|
android:layout_marginBottom="10sp"
|
android:layout_centerHorizontal="true"
|
android:layout_alignParentBottom="true"
|
app:cornerRadius="5dp"
|
android:paddingLeft="10dp"
|
android:paddingRight="10dp"
|
android:minWidth="10dp"
|
android:backgroundTint="#2196F3" />
|
|
<com.google.android.material.button.MaterialButton
|
android:id="@+id/btn_up"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="上升"
|
android:layout_marginRight="20sp"
|
android:layout_centerVertical="true"
|
android:layout_alignParentRight="true"
|
app:cornerRadius="5dp"
|
android:paddingLeft="10dp"
|
android:paddingRight="10dp"
|
android:minWidth="10dp"
|
android:layout_alignLeft="@+id/btn_rotatopn_left"
|
android:layout_alignBottom="@+id/btn_go_backward"
|
android:backgroundTint="#2196F3" />
|
|
<com.google.android.material.button.MaterialButton
|
android:id="@+id/btn_rotatopn_left"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="左旋转"
|
android:layout_marginRight="20sp"
|
android:layout_centerVertical="true"
|
android:layout_alignParentRight="true"
|
app:cornerRadius="5dp"
|
android:paddingLeft="10dp"
|
android:paddingRight="10dp"
|
android:minWidth="10dp"
|
android:backgroundTint="#2196F3" />
|
|
<com.google.android.material.button.MaterialButton
|
android:id="@+id/btn_rotatopn_right"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="右旋转"
|
android:layout_marginLeft="20sp"
|
android:layout_centerVertical="true"
|
android:layout_alignParentLeft="true"
|
app:cornerRadius="5dp"
|
android:paddingLeft="10dp"
|
android:paddingRight="10dp"
|
android:minWidth="10dp"
|
android:backgroundTint="#2196F3" />
|
|
</RelativeLayout>
|
<!-- <LinearLayout-->
|
<!-- android:layout_width="match_parent"-->
|
<!-- android:layout_height="0dp"-->
|
<!-- android:layout_weight="6">-->
|
<!-- -->
|
<!-- </LinearLayout>-->
|
<LinearLayout
|
android:background="#334455"
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
android:layout_weight="1">
|
|
</LinearLayout>
|
|
|
|
|
</LinearLayout>
|