Hi all,
please, how do I get the real size of the device, where my app is running? For example, when I use Xperia Z3 Compact, which has resolution 720x1280, I would like to get:
- width = 720 px,
- height = 1280 px.
... but when I use few different functions, I always get height = 1184 px instead of expected 1280 px. The functions I use to detect real device height are:
1. 100%y,
2. Activity.Height,
3. os.physicalScreenHeight / os.ydpi,
4. GetDeviceLayoutValues.Height.
My app has following properties:
#Region Activity Attributes
#FullScreen: True
#IncludeTitle: False
#End Region
I assume, that missing 96 px (1280 - 1184) are due to soft keys menu at the bootom and all four commands above return just "useful" screen height.
Please, which command should I use to get the whole screen height of 1280 px? Or, using which command do I get the height of soft keys menu?
Thank you.
please, how do I get the real size of the device, where my app is running? For example, when I use Xperia Z3 Compact, which has resolution 720x1280, I would like to get:
- width = 720 px,
- height = 1280 px.
... but when I use few different functions, I always get height = 1184 px instead of expected 1280 px. The functions I use to detect real device height are:
1. 100%y,
2. Activity.Height,
3. os.physicalScreenHeight / os.ydpi,
4. GetDeviceLayoutValues.Height.
My app has following properties:
#Region Activity Attributes
#FullScreen: True
#IncludeTitle: False
#End Region
I assume, that missing 96 px (1280 - 1184) are due to soft keys menu at the bootom and all four commands above return just "useful" screen height.
Please, which command should I use to get the whole screen height of 1280 px? Or, using which command do I get the height of soft keys menu?
Thank you.
Last edited: