Quick Links: Download Gideros Studio | Gideros Documentation | Gideros Development Center | Gideros community chat | DONATE
Can you please check on your android devices if navbar height is consistent? — Gideros Forum

Can you please check on your android devices if navbar height is consistent?

Hi I guess we have a way to measure the height of android navbar which is screen_dpi*0.3


so if we want to avoid drawing in that area we just need to calculate how much is its height and act accordingly.
 local our_DPI = application:getScreenDensity()
 local navbar_height = our_DPI * 0.3
This works fine on samsung s20, if you happen to test it on other devices, please add them here :)
Sign In or Register to comment.