有时候项目中会遇到各种各样的设计与需求,把这两天在工作中涉及到的有点小问题的总结下
1.单选不互斥
public class Single_choice_adapter extends BaseAdapter {
private Context context;
private String[] list;
private HashMap<String, Boolean> states = new HashMap<String, Boolean>();// 用于记录每个RadioButton的状态,并保证只可选一个
private TextView test;
onRadioButtonClickListners radioButtonClickListner;
public Single_choice_adapter(Context context, String[] strings,
TextView test) {
super();
this.context = context;
this.list