Android Question Edittext and Scanner

fatman

Active Member
Licensed User
Longtime User
Hi Folks,

I have several edittexts which are filled by a scanner. Obviously the scanner delivers a CRLF
which shifts the focus to the next edittext.
Is it possible to change that behaviour?
I tested the masked edit lib by Informatix but the focus is still shifting...

Any ideas/hints are welcome.

Fatman
 

DonManfred

Expert
Licensed User
Longtime User
Usually such scanners can be configured to behave like this (or even not).
Change config.

Alternatively you can set a key listener to your editexts.
If enter pressed then return false in the listener to consume the event...
 
Upvote 0
Top