我想出一个代码,但我不理解它所说的positionData =(byte)(checkedId -position1Button.getId());
" - "代表什么?
private byte positionData;
class PositionRadioGroupListener implements android.widget.RadioGroup.OnCheckedChangeListener{
@Override
public void onCheckedChanged(RadioGroup group, int checkedId) {
positionData=(byte) (checkedId -position1Button.getId());
imageChange();
}//onCheckedChanged
}