扫描头开启,并发送回车

txtUsername.setOnEditorActionListener(new OnEditorActionListener() {

@Override
public boolean onEditorAction(TextView arg0, int arg1, KeyEvent arg2) {
if(arg2.getKeyCode()==KeyEvent.KEYCODE_ENTER){
// TODO Auto-generated method stub
txtPassword.setText("xxxx");
return true;
}
return false;
}
});

 

 

<EditText
android: >

相关文章:

  • 2022-02-17
  • 2021-07-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-24
猜你喜欢
  • 2022-12-23
  • 2021-08-22
  • 2022-12-23
  • 2022-12-23
  • 2021-12-24
  • 2022-12-23
  • 2021-12-23
相关资源
相似解决方案