#
whycq
2025-01-04 304d8369f75ea787085a08517abb37b7159e2ea2
app/src/main/res/layout/activity_main.xml
@@ -94,7 +94,7 @@
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_weight="6"
        android:visibility="visible">
        android:visibility="gone">
        <Button
            android:id="@+id/btn_stop2"
@@ -112,7 +112,7 @@
            android:layout_height="wrap_content"
            android:layout_centerHorizontal="true"
            android:layout_marginTop="10sp"
            android:backgroundTint="#2196F3"
            android:backgroundTint="@color/bulue.500"
            android:minWidth="10dp"
            android:paddingLeft="10dp"
            android:paddingRight="10dp"
@@ -468,6 +468,160 @@
    </RelativeLayout>
    <!--    ****************  18轴  ****************    -->
    <GridLayout
        android:id="@+id/layout_18"
        android:visibility="visible"
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_weight="6"
        android:columnCount="4"
        android:rowCount="2"
        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_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_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_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_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_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_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_9_back"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_columnWeight="1"
            style="@style/CustomButtonStyle"
            android:text="右旋转"/>
    </GridLayout>
    <!--    ****************  底部  ****************    -->
    <LinearLayout
        android:background="#334455"