Skip to content Skip to sidebar Skip to footer

Android Status Bar Scrolling Up With Coordinator Layout, Leaving Status Icons Overlapping Toolbar Title

I am experiencing an issue when using Coordinator Layout that contains an AppBarLayout (holding a ToolBar and a TabLayout) and a ViewPager (holding fragments) as children. I want t

Solution 1:

Review the theme for the activity, if the theme is like @style/AppTheme.NoActionBar or one theme without ActionBar, try putting a color, you must have a style(v21) something like this:

<stylename="AppTheme.NoActionBar"><itemname="windowActionBar">false</item><itemname="windowNoTitle">true</item><itemname="android:windowDrawsSystemBarBackgrounds">true</item><itemname="android:statusBarColor">@android:color/transparent</item></style>

change it for :

<stylename="AppTheme.NoActionBar"><itemname="windowActionBar">false</item><itemname="windowNoTitle">true</item><itemname="android:windowDrawsSystemBarBackgrounds">true</item><itemname="android:statusBarColor">@color/colorPrimaryDark</item></style>

Post a Comment for "Android Status Bar Scrolling Up With Coordinator Layout, Leaving Status Icons Overlapping Toolbar Title"