单选框和隐藏文本框。
RadioButton t1,t2,t3,t4,t5;
EditText s1;
EditText s2;
EditText s3;
EditText s4;
隐藏框之一
s1=(EditText) findViewById(R.id.s1);
s2=(EditText)findViewById( R.id.s2);
s3=(EditText)findViewById( R.id.s3);
s4=(EditText)findViewById( R.id.s4);
t1=findViewById(R.id.t1);
t1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
s1.setVisibility(View.GONE);
s2.setVisibility(View.GONE);
s3.setVisibility(View.GONE);
s4.setVisibility(View.GONE);
}
});