5***@qq.com
5***@qq.com
  • 发布:2023-12-21 16:30
  • 更新:2023-12-21 16:30
  • 阅读:202

请教一下大家,现在用uniapp做AR眼镜的app应用,遇到一个问题,如何去掉AR眼镜旋钮选中的样式

分类:uni-app

图中箭头指示的是旋转选中的样式,我该如何去掉?如何控制旋钮的选中顺序?

@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);
}

2023-12-21 16:30 负责人:无 分享
已邀请:

要回复问题请先登录注册