如何更改应用程序中使用的默认键盘的背景颜色? [英] How do I change the background color of default keyboard used in an app?

查看:91
本文介绍了如何更改应用程序中使用的默认键盘的背景颜色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,我正在制作的应用程序需要使用较暗的键盘(否则内容与键盘之间的对比度太高),因此我需要更改与EditText交互时出现的键盘.

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.

我查看了 Android软键盘,但是我很难跟进.如果有人能够帮助我,那太好了,尽管我希望已经有一种更简单的方法了.

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.

谢谢.

推荐答案

如果要在应用程序中使用具有特定外观的键盘,则需要将其包括在应用程序中.您的应用可以说出它想要显示的键盘变体(qwerty,数字键盘等),但是appart不能改变键盘.

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.

这篇关于如何更改应用程序中使用的默认键盘的背景颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆