How can I change the color of the StatusBar from the java class? For example, to change the color of the navigation bar (lower back, home and menu) would be like this:
getWindow (). setNavigationBarColor (getResources (). getColor (R.color.colorbarra_inf));
I would also be interested in color or style but I can not because AndroidManifest change the Theme AppTheme to Theme.AppCompat.Light to use the App blank and not black colors, and now changing the colorPrimary has no effect.
Style:
<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
</style>
</resources>
Thanks