| | |
| | | android:background="#334455" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="0dp" |
| | | android:orientation="vertical" |
| | | android:padding="10dp" |
| | | android:layout_weight="4"> |
| | | <LinearLayout |
| | | android:layout_width="match_parent" |
| | | android:layout_height="0dp" |
| | | android:layout_weight="2" |
| | | android:orientation="vertical"> |
| | | > |
| | | <TextView |
| | | android:id="@+id/agv_battery" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | android:gravity="" |
| | | android:textSize="14sp" |
| | | android:text="电量:100%" |
| | | android:textColor="#FFFFFF" /> |
| | | <TextView |
| | | android:id="@+id/agv_no" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | android:gravity="" |
| | | android:textSize="14sp" |
| | | android:text="AGV编号:1" |
| | | android:textColor="#FFFFFF" /> |
| | | <TextView |
| | | android:id="@+id/agv_status" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | android:gravity="" |
| | | android:textSize="14sp" |
| | | android:text="AGV状态:空闲" |
| | | android:textColor="#FFFFFF" /> |
| | | <LinearLayout |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" > |
| | | <TextView |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:gravity="" |
| | | android:textSize="12sp" |
| | | android:layout_marginRight="10dp" |
| | | android:text="当前位置" |
| | | android:textColor="#FFFFFF" /> |
| | | <TextView |
| | | android:id="@+id/agv_position_id" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:gravity="" |
| | | android:textSize="12sp" |
| | | android:layout_marginRight="10dp" |
| | | android:text="ID:9987" |
| | | android:textColor="#FFFFFF" /> |
| | | <TextView |
| | | android:id="@+id/agv_position_x" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:gravity="" |
| | | android:textSize="12sp" |
| | | android:layout_marginRight="10dp" |
| | | android:text="(X):123087" |
| | | android:textColor="#FFFFFF" /> |
| | | <TextView |
| | | android:id="@+id/agv_position_y" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:gravity="" |
| | | android:textSize="12sp" |
| | | android:layout_marginRight="10dp" |
| | | android:text="(Y):432311" |
| | | android:textColor="#FFFFFF" /> |
| | | </LinearLayout> |
| | | <LinearLayout |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" > |
| | | <TextView |
| | | android:id="@+id/agv_position_height" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:gravity="" |
| | | android:textSize="12sp" |
| | | android:layout_marginRight="10dp" |
| | | android:text="当前高度:100mm" |
| | | android:textColor="#FFFFFF" /> |
| | | <TextView |
| | | android:id="@+id/agv_ford" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:gravity="" |
| | | android:textSize="12sp" |
| | | android:layout_marginRight="10dp" |
| | | android:text="货叉伸出距离:30mm" |
| | | android:textColor="#FFFFFF" /> |
| | | <TextView |
| | | android:id="@+id/agv_ratio" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:gravity="" |
| | | android:textSize="12sp" |
| | | android:layout_marginRight="10dp" |
| | | android:text="货叉旋转角度:90°" |
| | | android:textColor="#FFFFFF" /> |
| | | </LinearLayout> |
| | | <TextView |
| | | android:id="@+id/agv_error" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:gravity="" |
| | | android:textSize="12sp" |
| | | android:layout_marginRight="10dp" |
| | | android:text="AGV故障:导航故障 > 待机状态下丢码" |
| | | android:textColor="#FFFFFF" /> |
| | | </LinearLayout> |
| | | <LinearLayout |
| | | android:layout_width="match_parent" |
| | | android:layout_height="0dp" |
| | | android:layout_weight="1" |
| | | android:orientation="vertical" |
| | | android:background="#FFFFFF" |
| | | android:radius="10dp" |
| | | > |
| | | <TextView |
| | | android:layout_width="match_parent" |
| | | android:layout_height="match_parent" |
| | | android:text="上行:1232132121" |
| | | /> |
| | | <TextView |
| | | android:layout_width="match_parent" |
| | | android:layout_height="match_parent" |
| | | android:text="下行:1232132121" |
| | | /> |
| | | </LinearLayout> |
| | | </LinearLayout> |
| | | |
| | | <!-- **************** 底盘 **************** --> |
| | |
| | | android:layout_width="match_parent" |
| | | android:layout_height="0dp" |
| | | android:layout_weight="6" |
| | | android:visibility="gone"> |
| | | android:visibility="visible"> |
| | | |
| | | <Button |
| | | android:id="@+id/btn_stop2" |
| | |
| | | </RelativeLayout> |
| | | |
| | | <!-- **************** 单轴 **************** --> |
| | | <RelativeLayout |
| | | |
| | | <GridLayout |
| | | android:id="@+id/layout_single" |
| | | android:visibility="gone" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="0dp" |
| | | android:layout_weight="6" |
| | | android:visibility="gone"> |
| | | android:rowCount="3" |
| | | android:columnCount="3"> |
| | | |
| | | <com.google.android.material.button.MaterialButton |
| | | android:id="@+id/btn_single_1" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:layout_alignParentLeft="true" |
| | | android:layout_marginTop="10sp" |
| | | android:layout_marginLeft="20sp" |
| | | android:backgroundTint="#2196F3" |
| | | android:text="轴 - 1" |
| | | app:cornerRadius="5dp" /> |
| | | <LinearLayout |
| | | android:layout_width="0dp" |
| | | android:layout_height="0dp" |
| | | android:layout_rowWeight="1" |
| | | android:layout_columnWeight="1" |
| | | android:orientation="vertical" |
| | | android:gravity="center"> |
| | | <com.google.android.material.button.MaterialButton |
| | | android:id="@+id/btn_axle_1_front" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="40dp" |
| | | android:text="正转" |
| | | android:layout_centerHorizontal="true" |
| | | app:cornerRadius="5dp" |
| | | android:paddingLeft="10dp" |
| | | android:paddingRight="10dp" |
| | | android:minWidth="10dp" |
| | | android:textSize="10sp" |
| | | android:backgroundTint="#2196F3" |
| | | android:layout_marginBottom="10sp" |
| | | android:visibility="gone"/> |
| | | <com.google.android.material.button.MaterialButton |
| | | android:id="@+id/btn_axle_1_back" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="40dp" |
| | | android:text="反转" |
| | | android:layout_centerHorizontal="true" |
| | | app:cornerRadius="5dp" |
| | | android:paddingLeft="10dp" |
| | | android:paddingRight="10dp" |
| | | android:minWidth="10dp" |
| | | android:textSize="10sp" |
| | | android:backgroundTint="#2196F3" |
| | | android:layout_marginBottom="10sp" |
| | | android:visibility="gone"/> |
| | | <Switch |
| | | android:id="@+id/switch1" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:text="左轮使能" |
| | | android:textSize="12sp" |
| | | android:layout_alignParentBottom="true" |
| | | android:layout_centerHorizontal="true" |
| | | /> |
| | | |
| | | <com.google.android.material.button.MaterialButton |
| | | android:id="@+id/btn_single_2" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:layout_alignLeft="@+id/btn_single_5" |
| | | android:layout_marginTop="10sp" |
| | | android:backgroundTint="#2196F3" |
| | | android:text="轴 - 2" |
| | | app:cornerRadius="5dp" /> |
| | | </LinearLayout> |
| | | <LinearLayout |
| | | android:layout_width="0dp" |
| | | android:layout_height="0dp" |
| | | android:layout_rowWeight="1" |
| | | android:layout_columnWeight="1" |
| | | android:orientation="vertical" |
| | | android:gravity="center"> |
| | | <com.google.android.material.button.MaterialButton |
| | | android:id="@+id/btn_axle_2_front" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="40dp" |
| | | android:text="正转" |
| | | android:layout_centerHorizontal="true" |
| | | app:cornerRadius="5dp" |
| | | android:paddingLeft="10dp" |
| | | android:paddingRight="10dp" |
| | | android:minWidth="10dp" |
| | | android:textSize="10sp" |
| | | android:backgroundTint="#2196F3" |
| | | android:layout_marginBottom="10sp" |
| | | android:visibility="gone"/> |
| | | <com.google.android.material.button.MaterialButton |
| | | android:id="@+id/btn_axle_2_back" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="40dp" |
| | | android:text="反转" |
| | | android:layout_centerHorizontal="true" |
| | | app:cornerRadius="5dp" |
| | | android:paddingLeft="10dp" |
| | | android:paddingRight="10dp" |
| | | android:minWidth="10dp" |
| | | android:textSize="10sp" |
| | | android:backgroundTint="#2196F3" |
| | | android:layout_marginBottom="10sp" |
| | | android:visibility="gone"/> |
| | | <Switch |
| | | android:id="@+id/switch2" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:text="右轮使能" |
| | | android:textSize="12sp" |
| | | android:layout_alignParentBottom="true" |
| | | android:layout_centerHorizontal="true" |
| | | /> |
| | | |
| | | <com.google.android.material.button.MaterialButton |
| | | android:id="@+id/btn_single_3" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:layout_alignParentRight="true" |
| | | android:layout_marginRight="20sp" |
| | | android:layout_marginTop="10sp" |
| | | android:backgroundTint="#2196F3" |
| | | android:text="轴 - 3" |
| | | app:cornerRadius="5dp" /> |
| | | </LinearLayout> |
| | | <LinearLayout |
| | | android:layout_width="0dp" |
| | | android:layout_height="0dp" |
| | | android:layout_rowWeight="1" |
| | | android:layout_columnWeight="1" |
| | | android:orientation="vertical" |
| | | android:gravity="center"> |
| | | <com.google.android.material.button.MaterialButton |
| | | android:id="@+id/btn_axle_3_front" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="40dp" |
| | | android:text="上升" |
| | | android:layout_centerHorizontal="true" |
| | | app:cornerRadius="5dp" |
| | | android:paddingLeft="10dp" |
| | | android:paddingRight="10dp" |
| | | android:minWidth="10dp" |
| | | android:textSize="10sp" |
| | | android:backgroundTint="#2196F3" |
| | | android:layout_marginBottom="10sp" |
| | | android:visibility="gone"/> |
| | | <com.google.android.material.button.MaterialButton |
| | | android:id="@+id/btn_axle_3_back" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="40dp" |
| | | android:text="下降" |
| | | android:layout_centerHorizontal="true" |
| | | app:cornerRadius="5dp" |
| | | android:paddingLeft="10dp" |
| | | android:paddingRight="10dp" |
| | | android:minWidth="10dp" |
| | | android:textSize="10sp" |
| | | android:backgroundTint="#2196F3" |
| | | android:layout_marginBottom="10sp" |
| | | android:visibility="gone"/> |
| | | <Switch |
| | | android:id="@+id/switch3" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:text="升降使能" |
| | | android:textSize="12sp" |
| | | android:layout_alignParentBottom="true" |
| | | android:layout_centerHorizontal="true" |
| | | /> |
| | | |
| | | <com.google.android.material.button.MaterialButton |
| | | android:id="@+id/btn_single_4" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:layout_alignLeft="@+id/btn_single_1" |
| | | android:layout_alignBottom="@+id/btn_single_5" |
| | | android:backgroundTint="#2196F3" |
| | | android:text="轴 - 4" |
| | | app:cornerRadius="5dp" /> |
| | | </LinearLayout> |
| | | <LinearLayout |
| | | android:layout_width="0dp" |
| | | android:layout_height="0dp" |
| | | android:layout_rowWeight="1" |
| | | android:layout_columnWeight="1" |
| | | android:orientation="vertical" |
| | | android:gravity="center"> |
| | | <com.google.android.material.button.MaterialButton |
| | | android:id="@+id/btn_axle_4_front" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="40dp" |
| | | android:text="正向" |
| | | android:layout_centerHorizontal="true" |
| | | app:cornerRadius="5dp" |
| | | android:paddingLeft="10dp" |
| | | android:paddingRight="10dp" |
| | | android:minWidth="10dp" |
| | | android:textSize="10sp" |
| | | android:backgroundTint="#2196F3" |
| | | android:layout_marginBottom="10sp" |
| | | android:visibility="gone"/> |
| | | <com.google.android.material.button.MaterialButton |
| | | android:id="@+id/btn_axle_4_back" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="40dp" |
| | | android:text="反向" |
| | | android:layout_centerHorizontal="true" |
| | | app:cornerRadius="5dp" |
| | | android:paddingLeft="10dp" |
| | | android:paddingRight="10dp" |
| | | android:minWidth="10dp" |
| | | android:textSize="10sp" |
| | | android:backgroundTint="#2196F3" |
| | | android:layout_marginBottom="10sp" |
| | | android:visibility="gone"/> |
| | | <Switch |
| | | android:id="@+id/switch4" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:text="货叉回转使能" |
| | | android:textSize="12sp" |
| | | android:layout_alignParentBottom="true" |
| | | android:layout_centerHorizontal="true" |
| | | /> |
| | | |
| | | <com.google.android.material.button.MaterialButton |
| | | android:id="@+id/btn_single_5" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:layout_centerInParent="true" |
| | | android:backgroundTint="#2196F3" |
| | | android:text="轴 - 5" |
| | | app:cornerRadius="5dp" /> |
| | | </LinearLayout> |
| | | <LinearLayout |
| | | android:layout_width="0dp" |
| | | android:layout_height="0dp" |
| | | android:layout_rowWeight="1" |
| | | android:layout_columnWeight="1" |
| | | android:orientation="vertical" |
| | | android:gravity="center"> |
| | | <com.google.android.material.button.MaterialButton |
| | | android:id="@+id/btn_axle_5_front" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="40dp" |
| | | android:text="伸出" |
| | | android:layout_centerHorizontal="true" |
| | | app:cornerRadius="5dp" |
| | | android:paddingLeft="10dp" |
| | | android:paddingRight="10dp" |
| | | android:minWidth="10dp" |
| | | android:textSize="10sp" |
| | | android:backgroundTint="#2196F3" |
| | | android:layout_marginBottom="10sp" |
| | | android:visibility="gone"/> |
| | | <com.google.android.material.button.MaterialButton |
| | | android:id="@+id/btn_axle_5_back" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="40dp" |
| | | android:text="回缩" |
| | | android:layout_centerHorizontal="true" |
| | | app:cornerRadius="5dp" |
| | | android:paddingLeft="10dp" |
| | | android:paddingRight="10dp" |
| | | android:minWidth="10dp" |
| | | android:textSize="10sp" |
| | | android:backgroundTint="#2196F3" |
| | | android:layout_marginBottom="10sp" |
| | | android:visibility="gone"/> |
| | | <Switch |
| | | android:id="@+id/switch5" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:text="货叉伸缩使能" |
| | | android:textSize="12sp" |
| | | android:layout_alignParentBottom="true" |
| | | android:layout_centerHorizontal="true" |
| | | /> |
| | | |
| | | <com.google.android.material.button.MaterialButton |
| | | android:id="@+id/btn_single_6" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:layout_alignLeft="@+id/btn_single_3" |
| | | android:layout_alignBottom="@+id/btn_single_5" |
| | | android:backgroundTint="#2196F3" |
| | | android:text="轴 - 6" |
| | | app:cornerRadius="5dp" /> |
| | | </LinearLayout> |
| | | <LinearLayout |
| | | android:layout_width="0dp" |
| | | android:layout_height="0dp" |
| | | android:layout_rowWeight="1" |
| | | android:layout_columnWeight="1" |
| | | android:orientation="vertical" |
| | | android:gravity="center"> |
| | | <com.google.android.material.button.MaterialButton |
| | | android:id="@+id/btn_axle_6_front" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="40dp" |
| | | android:text="正向" |
| | | android:layout_centerHorizontal="true" |
| | | app:cornerRadius="5dp" |
| | | android:paddingLeft="10dp" |
| | | android:paddingRight="10dp" |
| | | android:minWidth="10dp" |
| | | android:textSize="10sp" |
| | | android:backgroundTint="#2196F3" |
| | | android:layout_marginBottom="10sp" |
| | | android:visibility="gone"/> |
| | | <com.google.android.material.button.MaterialButton |
| | | android:id="@+id/btn_axle_6_back" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="40dp" |
| | | android:text="反向" |
| | | android:layout_centerHorizontal="true" |
| | | app:cornerRadius="5dp" |
| | | android:paddingLeft="10dp" |
| | | android:paddingRight="10dp" |
| | | android:minWidth="10dp" |
| | | android:textSize="10sp" |
| | | android:backgroundTint="#2196F3" |
| | | android:layout_marginBottom="10sp" |
| | | android:visibility="gone"/> |
| | | <Switch |
| | | android:id="@+id/switch6" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:text="拨指使能1" |
| | | android:textSize="12sp" |
| | | android:layout_alignParentBottom="true" |
| | | android:layout_centerHorizontal="true" |
| | | /> |
| | | |
| | | <com.google.android.material.button.MaterialButton |
| | | android:id="@+id/btn_single_7" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:layout_alignLeft="@+id/btn_single_1" |
| | | android:layout_alignBottom="@+id/btn_single_8" |
| | | android:backgroundTint="#2196F3" |
| | | android:text="轴 - 7" |
| | | app:cornerRadius="5dp" /> |
| | | </LinearLayout> |
| | | <LinearLayout |
| | | android:layout_width="0dp" |
| | | android:layout_height="0dp" |
| | | android:layout_rowWeight="1" |
| | | android:layout_columnWeight="1" |
| | | android:orientation="vertical" |
| | | android:gravity="center"> |
| | | <com.google.android.material.button.MaterialButton |
| | | android:id="@+id/btn_axle_7_front" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="40dp" |
| | | android:text="正向" |
| | | android:layout_centerHorizontal="true" |
| | | app:cornerRadius="5dp" |
| | | android:paddingLeft="10dp" |
| | | android:paddingRight="10dp" |
| | | android:minWidth="10dp" |
| | | android:textSize="10sp" |
| | | android:backgroundTint="#2196F3" |
| | | android:layout_marginBottom="10sp" |
| | | android:visibility="gone"/> |
| | | <com.google.android.material.button.MaterialButton |
| | | android:id="@+id/btn_axle_7_back" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="40dp" |
| | | android:text="反向" |
| | | android:layout_centerHorizontal="true" |
| | | app:cornerRadius="5dp" |
| | | android:paddingLeft="10dp" |
| | | android:paddingRight="10dp" |
| | | android:minWidth="10dp" |
| | | android:textSize="10sp" |
| | | android:backgroundTint="#2196F3" |
| | | android:layout_marginBottom="10sp" |
| | | android:visibility="gone"/> |
| | | <Switch |
| | | android:id="@+id/switch7" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:text="拨指使能2" |
| | | android:textSize="12sp" |
| | | android:layout_alignParentBottom="true" |
| | | android:layout_centerHorizontal="true" |
| | | /> |
| | | |
| | | <com.google.android.material.button.MaterialButton |
| | | android:id="@+id/btn_single_8" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:layout_alignParentBottom="true" |
| | | android:layout_marginBottom="20sp" |
| | | android:layout_alignLeft="@+id/btn_single_5" |
| | | android:layout_marginTop="10sp" |
| | | android:backgroundTint="#2196F3" |
| | | android:text="轴 - 8" |
| | | app:cornerRadius="5dp" /> |
| | | </LinearLayout> |
| | | <LinearLayout |
| | | android:layout_width="0dp" |
| | | android:layout_height="0dp" |
| | | android:layout_rowWeight="1" |
| | | android:layout_columnWeight="1" |
| | | android:orientation="vertical" |
| | | android:gravity="center"> |
| | | <com.google.android.material.button.MaterialButton |
| | | android:id="@+id/btn_axle_8_front" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="40dp" |
| | | android:text="正向" |
| | | android:layout_centerHorizontal="true" |
| | | app:cornerRadius="5dp" |
| | | android:paddingLeft="10dp" |
| | | android:paddingRight="10dp" |
| | | android:minWidth="10dp" |
| | | android:textSize="10sp" |
| | | android:backgroundTint="#2196F3" |
| | | android:layout_marginBottom="10sp" |
| | | android:visibility="gone"/> |
| | | <com.google.android.material.button.MaterialButton |
| | | android:id="@+id/btn_axle_8_back" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="40dp" |
| | | android:text="反向" |
| | | android:layout_centerHorizontal="true" |
| | | app:cornerRadius="5dp" |
| | | android:paddingLeft="10dp" |
| | | android:paddingRight="10dp" |
| | | android:minWidth="10dp" |
| | | android:textSize="10sp" |
| | | android:backgroundTint="#2196F3" |
| | | android:layout_marginBottom="10sp" |
| | | android:visibility="gone"/> |
| | | <Switch |
| | | android:id="@+id/switch8" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:text="拨指使能3" |
| | | android:textSize="12sp" |
| | | android:layout_alignParentBottom="true" |
| | | android:layout_centerHorizontal="true" |
| | | /> |
| | | |
| | | <com.google.android.material.button.MaterialButton |
| | | android:id="@+id/btn_single_9" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:layout_alignLeft="@+id/btn_single_3" |
| | | android:layout_alignBottom="@+id/btn_single_8" |
| | | android:backgroundTint="#2196F3" |
| | | android:text="轴 - 9" |
| | | app:cornerRadius="5dp" /> |
| | | </LinearLayout> |
| | | <LinearLayout |
| | | android:layout_width="0dp" |
| | | android:layout_height="0dp" |
| | | android:layout_rowWeight="1" |
| | | android:layout_columnWeight="1" |
| | | android:orientation="vertical" |
| | | android:gravity="center"> |
| | | <com.google.android.material.button.MaterialButton |
| | | android:id="@+id/btn_axle_9_front" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="40dp" |
| | | android:text="正向" |
| | | android:layout_centerHorizontal="true" |
| | | app:cornerRadius="5dp" |
| | | android:paddingLeft="10dp" |
| | | android:paddingRight="10dp" |
| | | android:minWidth="10dp" |
| | | android:textSize="10sp" |
| | | android:backgroundTint="#2196F3" |
| | | android:layout_marginBottom="10sp" |
| | | android:visibility="gone"/> |
| | | <com.google.android.material.button.MaterialButton |
| | | android:id="@+id/btn_axle_9_back" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="40dp" |
| | | android:text="反向" |
| | | android:layout_centerHorizontal="true" |
| | | app:cornerRadius="5dp" |
| | | android:paddingLeft="10dp" |
| | | android:paddingRight="10dp" |
| | | android:minWidth="10dp" |
| | | android:textSize="10sp" |
| | | android:backgroundTint="#2196F3" |
| | | android:layout_marginBottom="10sp" |
| | | android:visibility="gone"/> |
| | | <Switch |
| | | android:id="@+id/switch9" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:text="拨指使能4" |
| | | android:textSize="12sp" |
| | | android:layout_alignParentBottom="true" |
| | | android:layout_centerHorizontal="true" |
| | | /> |
| | | |
| | | </RelativeLayout> |
| | | </LinearLayout> |
| | | </GridLayout> |
| | | |
| | | |
| | | |
| | | <!-- <com.google.android.material.button.MaterialButton--> |
| | | <!-- android:id="@+id/btn_single_2"--> |
| | | <!-- android:layout_width="wrap_content"--> |
| | | <!-- android:layout_height="wrap_content"--> |
| | | <!-- android:layout_alignLeft="@+id/btn_single_5"--> |
| | | <!-- android:layout_marginTop="10sp"--> |
| | | <!-- android:backgroundTint="#2196F3"--> |
| | | <!-- android:text="轴 - 2"--> |
| | | <!-- app:cornerRadius="5dp" />--> |
| | | |
| | | <!-- <com.google.android.material.button.MaterialButton--> |
| | | <!-- android:id="@+id/btn_single_3"--> |
| | | <!-- android:layout_width="wrap_content"--> |
| | | <!-- android:layout_height="wrap_content"--> |
| | | <!-- android:layout_alignParentRight="true"--> |
| | | <!-- android:layout_marginRight="20sp"--> |
| | | <!-- android:layout_marginTop="10sp"--> |
| | | <!-- android:backgroundTint="#2196F3"--> |
| | | <!-- android:text="轴 - 3"--> |
| | | <!-- app:cornerRadius="5dp" />--> |
| | | |
| | | <!-- <com.google.android.material.button.MaterialButton--> |
| | | <!-- android:id="@+id/btn_single_4"--> |
| | | <!-- android:layout_width="wrap_content"--> |
| | | <!-- android:layout_height="wrap_content"--> |
| | | <!-- android:layout_alignLeft="@+id/btn_single_1"--> |
| | | <!-- android:layout_alignBottom="@+id/btn_single_5"--> |
| | | <!-- android:backgroundTint="#2196F3"--> |
| | | <!-- android:text="轴 - 4"--> |
| | | <!-- app:cornerRadius="5dp" />--> |
| | | |
| | | <!-- <com.google.android.material.button.MaterialButton--> |
| | | <!-- android:id="@+id/btn_single_5"--> |
| | | <!-- android:layout_width="wrap_content"--> |
| | | <!-- android:layout_height="wrap_content"--> |
| | | <!-- android:layout_centerInParent="true"--> |
| | | <!-- android:backgroundTint="#2196F3"--> |
| | | <!-- android:text="轴 - 5"--> |
| | | <!-- app:cornerRadius="5dp" />--> |
| | | |
| | | <!-- <com.google.android.material.button.MaterialButton--> |
| | | <!-- android:id="@+id/btn_single_6"--> |
| | | <!-- android:layout_width="wrap_content"--> |
| | | <!-- android:layout_height="wrap_content"--> |
| | | <!-- android:layout_alignLeft="@+id/btn_single_3"--> |
| | | <!-- android:layout_alignBottom="@+id/btn_single_5"--> |
| | | <!-- android:backgroundTint="#2196F3"--> |
| | | <!-- android:text="轴 - 6"--> |
| | | <!-- app:cornerRadius="5dp" />--> |
| | | |
| | | <!-- <com.google.android.material.button.MaterialButton--> |
| | | <!-- android:id="@+id/btn_single_7"--> |
| | | <!-- android:layout_width="wrap_content"--> |
| | | <!-- android:layout_height="wrap_content"--> |
| | | <!-- android:layout_alignLeft="@+id/btn_single_1"--> |
| | | <!-- android:layout_alignBottom="@+id/btn_single_8"--> |
| | | <!-- android:backgroundTint="#2196F3"--> |
| | | <!-- android:text="轴 - 7"--> |
| | | <!-- app:cornerRadius="5dp" />--> |
| | | |
| | | <!-- <com.google.android.material.button.MaterialButton--> |
| | | <!-- android:id="@+id/btn_single_8"--> |
| | | <!-- android:layout_width="wrap_content"--> |
| | | <!-- android:layout_height="wrap_content"--> |
| | | <!-- android:layout_alignParentBottom="true"--> |
| | | <!-- android:layout_marginBottom="20sp"--> |
| | | <!-- android:layout_alignLeft="@+id/btn_single_5"--> |
| | | <!-- android:layout_marginTop="10sp"--> |
| | | <!-- android:backgroundTint="#2196F3"--> |
| | | <!-- android:text="轴 - 8"--> |
| | | <!-- app:cornerRadius="5dp" />--> |
| | | |
| | | <!-- <com.google.android.material.button.MaterialButton--> |
| | | <!-- android:id="@+id/btn_single_9"--> |
| | | <!-- android:layout_width="wrap_content"--> |
| | | <!-- android:layout_height="wrap_content"--> |
| | | <!-- android:layout_alignLeft="@+id/btn_single_3"--> |
| | | <!-- android:layout_alignBottom="@+id/btn_single_8"--> |
| | | <!-- android:backgroundTint="#2196F3"--> |
| | | <!-- android:text="轴 - 9"--> |
| | | <!-- app:cornerRadius="5dp" />--> |
| | | |
| | | |
| | | <!-- **************** 复位 **************** --> |
| | | <RelativeLayout |
| | |
| | | <!-- **************** 18轴 **************** --> |
| | | <GridLayout |
| | | android:id="@+id/layout_18" |
| | | android:visibility="visible" |
| | | android:visibility="gone" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="0dp" |
| | | android:layout_weight="6" |
| | |
| | | android:padding="5dp"> |
| | | |
| | | |
| | | <com.example.customBtn.CustomBtn |
| | | android:id="@+id/btn_axle_1_front" |
| | | android:layout_width="0dp" |
| | | android:layout_height="wrap_content" |
| | | android:layout_columnWeight="1" |
| | | style="@style/CustomButtonStyle" |
| | | android:text="前进"/> |
| | | <!-- <com.example.customBtn.CustomBtn--> |
| | | <!-- android:id="@+id/btn_axle_1_front"--> |
| | | <!-- android:layout_width="0dp"--> |
| | | <!-- android:layout_height="wrap_content"--> |
| | | <!-- android:layout_columnWeight="1"--> |
| | | <!-- style="@style/CustomButtonStyle"--> |
| | | <!-- android:text="前进"/>--> |
| | | |
| | | <com.example.customBtn.CustomBtn |
| | | android:id="@+id/btn_axle_1_back" |
| | | android:layout_width="0dp" |
| | | android:layout_height="wrap_content" |
| | | android:layout_columnWeight="1" |
| | | style="@style/CustomButtonStyle" |
| | | android:text="后退"/> |
| | | <!-- <com.example.customBtn.CustomBtn--> |
| | | <!-- android:id="@+id/btn_axle_1_back"--> |
| | | <!-- android:layout_width="0dp"--> |
| | | <!-- android:layout_height="wrap_content"--> |
| | | <!-- android:layout_columnWeight="1"--> |
| | | <!-- style="@style/CustomButtonStyle"--> |
| | | <!-- android:text="后退"/>--> |
| | | |
| | | <com.example.customBtn.CustomBtn |
| | | android:id="@+id/btn_axle_2_front" |
| | | android:layout_width="0dp" |
| | | android:layout_height="wrap_content" |
| | | android:layout_columnWeight="1" |
| | | style="@style/CustomButtonStyle" |
| | | android:text="左旋转"/> |
| | | <!-- <com.example.customBtn.CustomBtn--> |
| | | <!-- android:id="@+id/btn_axle_2_front"--> |
| | | <!-- android:layout_width="0dp"--> |
| | | <!-- android:layout_height="wrap_content"--> |
| | | <!-- android:layout_columnWeight="1"--> |
| | | <!-- style="@style/CustomButtonStyle"--> |
| | | <!-- android:text="左旋转"/>--> |
| | | |
| | | <com.example.customBtn.CustomBtn |
| | | android:id="@+id/btn_axle_2_back" |
| | | android:layout_width="0dp" |
| | | android:layout_height="wrap_content" |
| | | android:layout_columnWeight="1" |
| | | style="@style/CustomButtonStyle" |
| | | android:text="右旋转"/> |
| | | <!-- <com.example.customBtn.CustomBtn--> |
| | | <!-- android:id="@+id/btn_axle_2_back"--> |
| | | <!-- android:layout_width="0dp"--> |
| | | <!-- android:layout_height="wrap_content"--> |
| | | <!-- android:layout_columnWeight="1"--> |
| | | <!-- style="@style/CustomButtonStyle"--> |
| | | <!-- android:text="右旋转"/>--> |
| | | |
| | | <com.example.customBtn.CustomBtn |
| | | android:id="@+id/btn_axle_3_front" |
| | | android:layout_width="0dp" |
| | | android:layout_height="wrap_content" |
| | | android:layout_columnWeight="1" |
| | | style="@style/CustomButtonStyle" |
| | | android:text="左旋转"/> |
| | | <!-- <com.example.customBtn.CustomBtn--> |
| | | <!-- android:id="@+id/btn_axle_3_front"--> |
| | | <!-- android:layout_width="0dp"--> |
| | | <!-- android:layout_height="wrap_content"--> |
| | | <!-- android:layout_columnWeight="1"--> |
| | | <!-- style="@style/CustomButtonStyle"--> |
| | | <!-- android:text="左旋转"/>--> |
| | | |
| | | <com.example.customBtn.CustomBtn |
| | | android:id="@+id/btn_axle_3_back" |
| | | android:layout_width="0dp" |
| | | android:layout_height="wrap_content" |
| | | android:layout_columnWeight="1" |
| | | style="@style/CustomButtonStyle" |
| | | android:text="右旋转"/> |
| | | <!-- <com.example.customBtn.CustomBtn--> |
| | | <!-- android:id="@+id/btn_axle_3_back"--> |
| | | <!-- android:layout_width="0dp"--> |
| | | <!-- android:layout_height="wrap_content"--> |
| | | <!-- android:layout_columnWeight="1"--> |
| | | <!-- style="@style/CustomButtonStyle"--> |
| | | <!-- android:text="右旋转"/>--> |
| | | |
| | | <com.example.customBtn.CustomBtn |
| | | android:id="@+id/btn_axle_4_front" |
| | | android:layout_width="0dp" |
| | | android:layout_height="wrap_content" |
| | | android:layout_columnWeight="1" |
| | | style="@style/CustomButtonStyle" |
| | | android:text="左旋转"/> |
| | | <!-- <com.example.customBtn.CustomBtn--> |
| | | <!-- android:id="@+id/btn_axle_4_front"--> |
| | | <!-- android:layout_width="0dp"--> |
| | | <!-- android:layout_height="wrap_content"--> |
| | | <!-- android:layout_columnWeight="1"--> |
| | | <!-- style="@style/CustomButtonStyle"--> |
| | | <!-- android:text="左旋转"/>--> |
| | | |
| | | <com.example.customBtn.CustomBtn |
| | | android:id="@+id/btn_axle_4_back" |
| | | android:layout_width="0dp" |
| | | android:layout_height="wrap_content" |
| | | android:layout_columnWeight="1" |
| | | style="@style/CustomButtonStyle" |
| | | android:text="右旋转"/> |
| | | <!-- <com.example.customBtn.CustomBtn--> |
| | | <!-- android:id="@+id/btn_axle_4_back"--> |
| | | <!-- android:layout_width="0dp"--> |
| | | <!-- android:layout_height="wrap_content"--> |
| | | <!-- android:layout_columnWeight="1"--> |
| | | <!-- style="@style/CustomButtonStyle"--> |
| | | <!-- android:text="右旋转"/>--> |
| | | |
| | | <com.example.customBtn.CustomBtn |
| | | android:id="@+id/btn_axle_5_front" |
| | | android:layout_width="0dp" |
| | | android:layout_height="wrap_content" |
| | | android:layout_columnWeight="1" |
| | | style="@style/CustomButtonStyle" |
| | | android:text="左旋转"/> |
| | | <!-- <com.example.customBtn.CustomBtn--> |
| | | <!-- android:id="@+id/btn_axle_5_front"--> |
| | | <!-- android:layout_width="0dp"--> |
| | | <!-- android:layout_height="wrap_content"--> |
| | | <!-- android:layout_columnWeight="1"--> |
| | | <!-- style="@style/CustomButtonStyle"--> |
| | | <!-- android:text="左旋转"/>--> |
| | | |
| | | <com.example.customBtn.CustomBtn |
| | | android:id="@+id/btn_axle_5_back" |
| | | android:layout_width="0dp" |
| | | android:layout_height="wrap_content" |
| | | android:layout_columnWeight="1" |
| | | style="@style/CustomButtonStyle" |
| | | android:text="右旋转"/> |
| | | <com.example.customBtn.CustomBtn |
| | | android:id="@+id/btn_axle_6_front" |
| | | android:layout_width="0dp" |
| | | android:layout_height="wrap_content" |
| | | android:layout_columnWeight="1" |
| | | style="@style/CustomButtonStyle" |
| | | android:text="左旋转"/> |
| | | <!-- <com.example.customBtn.CustomBtn--> |
| | | <!-- android:id="@+id/btn_axle_5_back"--> |
| | | <!-- android:layout_width="0dp"--> |
| | | <!-- android:layout_height="wrap_content"--> |
| | | <!-- android:layout_columnWeight="1"--> |
| | | <!-- style="@style/CustomButtonStyle"--> |
| | | <!-- android:text="右旋转"/>--> |
| | | <!-- <com.example.customBtn.CustomBtn--> |
| | | <!-- android:id="@+id/btn_axle_6_front"--> |
| | | <!-- android:layout_width="0dp"--> |
| | | <!-- android:layout_height="wrap_content"--> |
| | | <!-- android:layout_columnWeight="1"--> |
| | | <!-- style="@style/CustomButtonStyle"--> |
| | | <!-- android:text="左旋转"/>--> |
| | | |
| | | <com.example.customBtn.CustomBtn |
| | | android:id="@+id/btn_axle_6_back" |
| | | android:layout_width="0dp" |
| | | android:layout_height="wrap_content" |
| | | android:layout_columnWeight="1" |
| | | style="@style/CustomButtonStyle" |
| | | android:text="右旋转"/> |
| | | <com.example.customBtn.CustomBtn |
| | | android:id="@+id/btn_axle_7_front" |
| | | android:layout_width="0dp" |
| | | android:layout_height="wrap_content" |
| | | android:layout_columnWeight="1" |
| | | style="@style/CustomButtonStyle" |
| | | android:text="左旋转"/> |
| | | <!-- <com.example.customBtn.CustomBtn--> |
| | | <!-- android:id="@+id/btn_axle_6_back"--> |
| | | <!-- android:layout_width="0dp"--> |
| | | <!-- android:layout_height="wrap_content"--> |
| | | <!-- android:layout_columnWeight="1"--> |
| | | <!-- style="@style/CustomButtonStyle"--> |
| | | <!-- android:text="右旋转"/>--> |
| | | <!-- <com.example.customBtn.CustomBtn--> |
| | | <!-- android:id="@+id/btn_axle_7_front"--> |
| | | <!-- android:layout_width="0dp"--> |
| | | <!-- android:layout_height="wrap_content"--> |
| | | <!-- android:layout_columnWeight="1"--> |
| | | <!-- style="@style/CustomButtonStyle"--> |
| | | <!-- android:text="左旋转"/>--> |
| | | |
| | | <com.example.customBtn.CustomBtn |
| | | android:id="@+id/btn_axle_7_back" |
| | | android:layout_width="0dp" |
| | | android:layout_height="wrap_content" |
| | | android:layout_columnWeight="1" |
| | | style="@style/CustomButtonStyle" |
| | | android:text="右旋转"/> |
| | | <com.example.customBtn.CustomBtn |
| | | android:id="@+id/btn_axle_8_front" |
| | | android:layout_width="0dp" |
| | | android:layout_height="wrap_content" |
| | | android:layout_columnWeight="1" |
| | | style="@style/CustomButtonStyle" |
| | | android:text="左旋转"/> |
| | | <!-- <com.example.customBtn.CustomBtn--> |
| | | <!-- android:id="@+id/btn_axle_7_back"--> |
| | | <!-- android:layout_width="0dp"--> |
| | | <!-- android:layout_height="wrap_content"--> |
| | | <!-- android:layout_columnWeight="1"--> |
| | | <!-- style="@style/CustomButtonStyle"--> |
| | | <!-- android:text="右旋转"/>--> |
| | | <!-- <com.example.customBtn.CustomBtn--> |
| | | <!-- android:id="@+id/btn_axle_8_front"--> |
| | | <!-- android:layout_width="0dp"--> |
| | | <!-- android:layout_height="wrap_content"--> |
| | | <!-- android:layout_columnWeight="1"--> |
| | | <!-- style="@style/CustomButtonStyle"--> |
| | | <!-- android:text="左旋转"/>--> |
| | | |
| | | <com.example.customBtn.CustomBtn |
| | | android:id="@+id/btn_axle_8_back" |
| | | android:layout_width="0dp" |
| | | android:layout_height="wrap_content" |
| | | android:layout_columnWeight="1" |
| | | style="@style/CustomButtonStyle" |
| | | android:text="右旋转"/> |
| | | <com.example.customBtn.CustomBtn |
| | | android:id="@+id/btn_axle_9_front" |
| | | android:layout_width="0dp" |
| | | android:layout_height="wrap_content" |
| | | android:layout_columnWeight="1" |
| | | style="@style/CustomButtonStyle" |
| | | android:text="左旋转"/> |
| | | <!-- <com.example.customBtn.CustomBtn--> |
| | | <!-- android:id="@+id/btn_axle_8_back"--> |
| | | <!-- android:layout_width="0dp"--> |
| | | <!-- android:layout_height="wrap_content"--> |
| | | <!-- android:layout_columnWeight="1"--> |
| | | <!-- style="@style/CustomButtonStyle"--> |
| | | <!-- android:text="右旋转"/>--> |
| | | <!-- <com.example.customBtn.CustomBtn--> |
| | | <!-- android:id="@+id/btn_axle_9_front"--> |
| | | <!-- android:layout_width="0dp"--> |
| | | <!-- android:layout_height="wrap_content"--> |
| | | <!-- android:layout_columnWeight="1"--> |
| | | <!-- style="@style/CustomButtonStyle"--> |
| | | <!-- android:text="左旋转"/>--> |
| | | |
| | | <com.example.customBtn.CustomBtn |
| | | android:id="@+id/btn_axle_9_back" |
| | | android:layout_width="0dp" |
| | | android:layout_height="wrap_content" |
| | | android:layout_columnWeight="1" |
| | | style="@style/CustomButtonStyle" |
| | | android:text="右旋转"/> |
| | | <!-- <com.example.customBtn.CustomBtn--> |
| | | <!-- android:id="@+id/btn_axle_9_back"--> |
| | | <!-- android:layout_width="0dp"--> |
| | | <!-- android:layout_height="wrap_content"--> |
| | | <!-- android:layout_columnWeight="1"--> |
| | | <!-- style="@style/CustomButtonStyle"--> |
| | | <!-- android:text="右旋转"/>--> |
| | | |
| | | </GridLayout> |
| | | |