I am working on a custom keyboard, so I implemented a class that implements an InputMethodService. There are already many posts about changing the color of the navigation bar in a regular activity - this is done by calling getWindow().setNavigationBarColor(), but I want to do the same for my keyboard: adjust the color of the navigation bar to the background color of my keyboard!
In an InputMethodService, I can access a window by getWindow(), but it is a instance of the SoftInputWindow class, so it does not offer a setNavigationBarColor method. Does anybody know how to achieve this?
There is a beta version of Gboard that can adjust the color of the navigation bar, so it seems to be possible...