I’ve made app, and the client have a software navigation keys. My menus look “bad” in his device.
I tried display.getSafeAreaInsets() but that don’t work for navigation bars.
I know the size of the bar using this code that I found in this forum:
local our_DPI = system.getInfo(“androidDisplayApproximateDpi”)
local phys_pixels_int = our_DPI * 0.3
local navbar_height_int = phys_pixels_int*display.contentHeight/display.pixelHeight
But if I use this code ALL devices will have the bottom changed. Can I detect if the navigation menu is ON or OFF? I had only to make an If statement.
Or there is a better way to do detect the bottom navigation bar and returning the height size?
Hope I’m missing something.