If you change the android:fitsSystemWindows="true"
to android:fitsSystemWindows="false"
, it may work.
I ran into a similar problem with your version of Support library version 23.2.0 , and then looked at StackOverflow; found your question.
My case was the opposite of yours, because I did not need the interval of the upper edge, but it was. Although I set android:fitsSystemWindows="false"
, but nothing has changed.
But I found that you set windowTranslucentStatus = true
, and so did I. This is the key.
I decided to change android:fitsSystemWindows="false"
to android:fitsSystemWindows="true"
. It worked.
It is possible that the behavior of android:fitsSystemWindows
been changed. It may have been inverted when windowTranslucentStatus = true
.
βBut the problem remains.β When the toolbar is collapsed, the bottom border of the toolbar is still misaligned. I have to abandon the use of windowTranslucentStatus = true
...
EDIT : 23.2.1 was released and the problem with the lower border was fixed. But the above assumption that the behavior of android:fitsSystemWindows
been inverted remains true.
source share