#
whycq
2024-08-08 b51bb0e49e55a50de06fc8700df02ac701bb9d95
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
<?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>