标签:
listener 分四步:
public interface OnSelectListener{
public void onSelect(RadioButton radioButton);
}
private OnSelectListener mSelectListener;
public void setOnSelectLinstener(OnSelectListener onSelectLinstener){
mSelectListener=onSelectLinstener;
}
if (mSelectListener!=null){
mSelectListener.onSelect((RadioButton) findViewById(checkedId));
}
private SelectView mSelectView;
mSelectView.setOnSelectLinstener(new SelectView.OnSelectListener() {
@Override
public void onSelect(RadioButton radioButton) {
mEditText.setText(radioButton.getText().toString());
}
});
标签:
原文地址:http://www.cnblogs.com/skyj20/p/5047081.html