android键盘处理事件,第一个返回值怎么是return false呢??
publicbooleanonKeyDown(intkeyCode,KeyEventevent){if(keyCode==KeyEvent.KEYCODE_VOLUME_...
public boolean onKeyDown(int keyCode, KeyEvent event) {
if (keyCode == KeyEvent.KEYCODE_VOLUME_UP) {
Toast.makeText(this, "音量增加", Toast.LENGTH_LONG).show();//提示音量增加
return false;
}
return super.onKeyDown(keyCode, event);
} 展开
if (keyCode == KeyEvent.KEYCODE_VOLUME_UP) {
Toast.makeText(this, "音量增加", Toast.LENGTH_LONG).show();//提示音量增加
return false;
}
return super.onKeyDown(keyCode, event);
} 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询