Josh
Josh

Reputation: 315

is it possible to change key layout inside android application?

Can I change the layout of a bluetooth keyboard just inside my application? Or in other words rebind the keys? For example: pressing "a" enters "s" and pressing "s" enters "a"

Upvotes: 0

Views: 146

Answers (1)

romy_ngo
romy_ngo

Reputation: 1061

You can set setOnKeyListener() for every EditText in your application, where you will handle the KeyEvent "a" by entering "s" to the 'EditText'. Yes, it is an ugly way but might just work.

Upvotes: 1

Related Questions