I make a simple browser in Android studio. How to make a translucent background line that is in the picture and that open sites do not start from this bar, but above, under it?

In styles.xml registered <item name="colorPrimaryDark">@color/colorPrimaryDark</item>

In color.xml <color name="colorPrimaryDark">#28D3C1</color>

Even the color does not change to the right one, why?

enter image description here

  • The color does not change, because it only works for API LEVEL> 19 - georgehardcore
  • this line is scientifically called statusbar - P. Ilyin
  • Translucent not to make it? The application under this bar is not set? - steep
  • In a statusbar, the color usually changes in the gradient below. - GuardFromUA

1 answer 1

Use the SystemBarTint library , it works in my work on lower versions of Lollypop.