图中箭头指示的是旋转选中的样式,我该如何去掉?如何控制旋钮的选中顺序?
@Override
public boolean dispatchKeyEvent(KeyEvent event) {
if (event.getKeyCode() == KeyEvent.KEYCODE_VOLUME_UP) {//顺时针旋转
if (event.getAction() == KeyEvent.ACTION_UP) {//按下
}
if (event.getAction() == KeyEvent.ACTION_DOWN){//抬起
}
}
if (event.getKeyCode() == KeyEvent.KEYCODE_VOLUME_DOWN) {//逆时针旋转
if (event.getAction() == KeyEvent.ACTION_UP) {//按下
}
if (event.getAction() == KeyEvent.ACTION_DOWN){//抬起
}
}
if (event.getKeyCode() == 500) {//点按
if (event.getAction() == KeyEvent.ACTION_UP) {//按下
}
if (event.getAction() == KeyEvent.ACTION_DOWN){//抬起
}
}
return super.dispatchKeyEvent(event);
}