M
M
MaxBat2020-10-17 21:16:08
Java
MaxBat, 2020-10-17 21:16:08

How to change the color of the actionbar with Java code?

It is necessary to change the color of the topmost strip of the screen, where time, charging, and so on, as I understand it, is the actionbar, depending on the open window. Each window needs its own color. Navbar changed like this

getWindow().setNavigationBarColor(get.Resources().get color(R.color.colorname));

One line. For the second hour I have been looking for an analogue for such a change in the color of the upper band. Thank you.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question