karanbhandari / Kaze

1 stars 0 forks source link

Navbar height not 0 even when softNavbar is disabled #45

Closed e-luo closed 5 years ago

e-luo commented 5 years ago

On the OnePlus 3 and 6, when the navbar is disabled (as by default), getNavbarHeight still returns a large positive value.

I've attempted a few different ways of obtaining screen height, but some don't take in account of notches, others don't work on emulators surprisingly - those ones also don't work when oneplus has software navbar enabled.

e-luo commented 5 years ago

Progress: Solving with inflating xml Created more accurate way of measuring boundaries of boards Grid drawn seamlessly on board