Jordi Mas Parramon
Jordi Mas Parramon
I'm programming an app with Android Studio and testing it in a virtual Pixel 6, and the functions to get statusbar height return something like 60px, but the real bar...
Sizes in Pixel 6 are (measured from a screenshot): StatusBar: 136px NavBar (pill): 42px My functions to get them are: ``` fun getStatusBarHeight(): Int { val resourceId = resources.getIdentifier("status_bar_height", "dimen",...
Well finally I managed to get the exact value, using some deprecated functions. What I did was detect the full screen height (2400) and supress the innerheight (2222) from it...