如何更改Android EditText键盘颜色? [英] How to change Android EditText keyboard color?

查看:75
本文介绍了如何更改Android EditText键盘颜色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在iOS中, TextField 具有一个名为 Appeareance 的属性,可以具有 Dark 值.它将更改键盘的颜色(而不是文本字段itsels),但是在Android中,我找不到与

In iOS TextField has a property called Appeareance can have a Dark value. It will change the KEYBOARD color, (not the textfield itsels) But in Android I do not find the appropriate one for EditText, to change keyboard color to dark, or black.

推荐答案

Android中没有单个键盘".Android支持可替换的输入法编辑器(也称为软键盘).这些由应用程序发布,包括预安装的应用程序和用户安装的应用程序.任何人都可以写其中之一.

There is no single "the keyboard" in Android. Android supports replaceable input method editors (a.k.a., soft keyboards). These are published by apps, including both pre-installed apps and apps installed by users. Anyone can write one of these.

AFAIK,输入法编辑器协议中没有任何内容允许编辑器了解有关导致该编辑器出现的应用程序配色方案的任何信息.但是,即使协议包含此信息,输入法编辑器的开发人员也可以选择忽略它.

AFAIK, there is nothing in the input method editor protocol that allows the editor to know anything about the color scheme of the app that happened to cause that editor to appear. But, even if the protocol included this information, the developer of the input method editor could choose to ignore it.

而且,即使输入法编辑器的开发人员知道通用主题(浅色还是深色)并选择为其实现某些功能,您仍然可能不喜欢开发人员选择的内容.毕竟,对于浅色"或深色"主题的外观尚无统一的定义.输入法编辑器开发人员可能为深色"选择深紫色,而您选择了深褐色.

And, even if the developer of the input method editor knew about the general theme (light vs. dark) and chose to implement something for it, you still might not like what the developer chooses. After all, there is no universal definition of what a "light" or "dark" theme should look like. The input method editor developer might choose a deep purple color for "dark", and you went with dark brown.

这篇关于如何更改Android EditText键盘颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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