'Android Extra White Space in Tool Bar

I am trying to brainstorm some ideas as to why my toolbar has extra whitespace at the top. I have confirmed through logging that during onResume() the paddingTop and marginTop are set to 0dp yet I am receiving the following:

enter image description here

My code for the toolbar is as such: enter image description here

I am setting the padding and margin top to 0 in the fragment's onResume() as such:

enter image description here

Already spent too much time on this UI bug and still not sure what else could be causing the extra whitespace, any idea is appreciated, thanks!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source