Reputation: 705
Im with a problem on Android. Everything is drawing below status bar and status bar is white and not the "primaryDarkColor".
I search a lot, tried a lot of solutions, but without success. I tried something like:
My project theme is simples:
<style name="AppTheme.NoActionBar" parent="Theme.AppCompat.Light.NoActionBar">
<item name="windowActionBar">false</item>
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
</style>
A screenshot:
Upvotes: 0
Views: 348
Reputation: 705
I solve my own problem.
The problem is not related by styles, but with one fragment inside the view pager.
Activity -> View Pager -> Fragment -> Set status bar transparent.
If one of fragment is setting the statusbar as transparent, the effect will reach all fragments, since the activity is the same to all.
Thanks.
Upvotes: 0