开发者

is it possible to change key layout inside android application?

开发者 https://www.devze.com 2023-03-28 17:14 出处:网络
Can I change the layout of a bluetooth keyboard ju开发者_如何学JAVAst inside my application? Or in other words rebind the keys?

Can I change the layout of a bluetooth keyboard ju开发者_如何学JAVAst inside my application? Or in other words rebind the keys? For example: pressing "a" enters "s" and pressing "s" enters "a"


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消