How do I change the background color of default keyboard used in an app?

99封情书 提交于 2019-12-12 22:17:40

问题


So the app I am making requires a darker keyboard to be used (or else the contrast between content and keyboard is far too high), so I need to change what keyboard appears when I interact with an EditText.

I've taken a look at the Android Soft Keyboard, but I'm having a hard time following it. If someone is able to help me with that, it'd be wonderful, though I am hoping there is an easier way out there already.

Thanks.


回答1:


If you want a keyboard with a specific look and feel in your app you need to include it in the app. Your app can say which keyboard variant it wants to appear (qwerty, numpad, etc...) but appart from that it cannot change the keyboard.

There are literally dozens of keyboards to chose from. I suggest that you don't design you app to require a very specific looking keyboard, instead design your app to look good under all circumstances.




回答2:


Here is a sample for your reference http://tutorials-android.blogspot.com/2011/06/create-your-own-custom-keyboard-for.html



来源:https://stackoverflow.com/questions/8896287/how-do-i-change-the-background-color-of-default-keyboard-used-in-an-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!