1、布局文件:
<RadioGroup
android:id="@+id/rg_communication"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toEndOf="@+id/lab_communicationMode"
android:layout_toRightOf="@+id/lab_communicationMode"
android:orientation="horizontal"
android:layout_marginLeft="10dp"
>
<RadioButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/rb_uart"
android:text="UART"
android:checked="true"
/>
<Rad