安卓开发-Android Studio-前端-设置单选框和复选框
1.新建一个radioButtonActivity
老规矩 在MainActivity中设置点击事件 与RadioButtonActivity相关联
package com.example.ayb.helloworld;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
public class MainActivity extends AppCompatActivity {
private Button mBtnTextView;
private Button mBtnButton;
private Button mBtnEditText;
private Button mBtnRadioButton;
private Button mBtnCheckBox;
private Button mBtnImageView;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
mBt