[英]How to disable text input to EditText from barcode bluetooth reader?
I work with Bluetooth barcode reader. 我使用蓝牙条形码读取器。 It works like a physical keyboard, when EditText focused, it inserts characters.
它就像物理键盘一样工作,当EditText聚焦时,它会插入字符。 When EditText not focused I process events from reader in dispatchKeyEvent().
当EditText不集中时,我在dispatchKeyEvent()中处理来自读取器的事件。 I need to disable barcode input when EditText is focused and soft keyboard input must be accesible.
当EditText聚焦并且软键盘输入必须可访问时,我需要禁用条形码输入。
You can use a TextView instead. 您可以改用TextView。 Or add the tag :
或添加标签:
android:editable="false"
android:editable =“ false”
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.