Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change Android EditText keyboard color?

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.

like image 864
János Avatar asked Sep 26 '16 13:09

János


2 Answers

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, 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.

like image 119
CommonsWare Avatar answered Nov 12 '22 10:11

CommonsWare


Simple answer: you can't.

In Android the keyboard is not (only) a native feature. You can chose wether showing it or not and which keyboard to show.

But since it's another application, you can't access it directly, the only tasks you can do are opening the app with intent.

here you can find the official doc about it

like image 3
Pier Giorgio Misley Avatar answered Nov 12 '22 10:11

Pier Giorgio Misley