方法一:RadioButton
<span style="font-size:14px;"><RadioGroup
android:id="@+id/main_rg_type"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="35dp"
android:layout_marginRight="35dp"
android:layout_marginTop="10dp"
android:gravity="center_horizontal" >
<RadioButton
android:id="@+id/main_rb_t1"
android:layout_width="120dp"
android:layout_height="wrap_content"
android:layout_marginBottom="15dp"
android:layout_marginTop="15dp"
android:button="@drawable/ic_p"
android:text="继续教育"
android:textColor="#F39801" />
</RadioGroup></span>
<span style="font-size:14px;">public class MainActivity extends BaseActivity {
private