Hello! For example, I paint the Toolbar purple, and the statusbar with a slightly darker color. It seems to me that this is wrong, for sure there is a formula for calculating the color of the status bar a bit darker than the toolbar. It would be desirable to follow the material design.

  • 2
    Usually use colors 1-2 shades darker than the color of the toolbar. I did not hear about the calculation formula ... - zTrap

2 answers 2

Here they write that there is still an official tool for this:

https://material.io/color/#!/

There you enter / select the primary color and automatically receive its light / dark version. You can choose a second color with automatically generated versions and immediately see how it will all look on different layouts on the device. Like that:

enter image description here

Actually, if you need a formula, you can independently calculate it based on the colors generated by the site.

  • Thank you very much :) - Flippy

Want to go-to-go follow material design

Apply one of 3 styles:

 @android:style/Theme.Material //темная версия @android:style/Theme.Material.Light //светлая версия @android:style/Theme.Material.Light.DarkActionBar 

See colors in R.style

  • With them will the statusbar itself be painted a little darker Toolbar ? - Flippy