I am new in Andr开发者_开发技巧oid and i am working to make an on-screen keyboard which can be visitable via arrow(direction) keys of my external keyboard. I mean i wanna move left, right, up and down in the on-screen keyboard's UI (keys) with pressing arrow keys from my external(hardware) keyboard. The key that cursor is on should be focused, when i press an arrow key from my external keyboard the focused key should change and when i press "enter" from my external keyboard it should be operated.(written to the screen etc.) How can i make this? Is there any idea? How can i make virtual keyboard's keys visitable? It doesn't look like moving around a matrix of buttons. Please, help me.
I believe u need to design your own keyboard for the task & in the background you can implement whatever interfacing you would like to implement between your customized Android keyboard & your PC keyboard.
Here is a sample to get started with Custiomized Keyboard rather than designing from the scratch http://developer.android.com/resources/samples/SoftKeyboard/src/com/example/android/softkeyboard/SoftKeyboard.html
Note:
1.Normally while working with adb you can use your PC keyboard.
2.Certain Issues I faced while working with a customized Android keyboard is that user need to goto Settings to select the customized keyboard.
精彩评论