[英]How can i move cursor in on-screen keyboard with external keyboard?
I am new in Android and i am working to make an on-screen keyboard which can be visitable via arrow(direction) keys of my external keyboard. 我是Android的新手,正在制作一个屏幕键盘,可以通过外部键盘的箭头(方向)键进行访问。 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.
我的意思是我想通过使用外部(硬件)键盘上的箭头键在屏幕键盘的UI(键)中向左,向右,向上和向下移动。 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?
光标所在的键应该对准焦点,当我从外部键盘按下箭头键时,聚焦的键应该改变,而当我从外部键盘按下“ enter”键时,应该对其进行操作。(写入屏幕等)我可以做这个吗? 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. 我相信您需要为任务设计自己的键盘,并且在后台可以实现您想要在自定义的Android键盘和PC键盘之间实现的任何接口。
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 这是一个开始使用Custiomized Keyboard的示例,而不是从头开始设计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. 1.通常在使用adb时,您可以使用PC键盘。
2.Certain Issues I faced while working with a customized Android keyboard is that user need to goto Settings to select the customized keyboard. 2.使用定制的Android键盘时遇到的某些问题是用户需要转到“设置”以选择定制的键盘。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.