您可以根据需要使用KeyboardView进行自定义。
KeyboardView customKeyboard = new KeyboardView(context);customKeyboard.setKeyboard(new Keyboard(this, R.xml.customLayout));customKeyboard.setonKeyboardActionListener(new onKeyboardActionListener() { //do your work here}其中 R.xml.customLayout 指 /res/xml/customLayout.xml 。一个非常好的自定义键盘教程是..
- 创建您自己的自定义键盘-for.html
这将帮助您更好。



