Android Question Wrong value returned for 100%x

Matt S.

Member
Licensed User
I am debugging my app on a Samsung S21 FE with 1080 x 2340 pixels as described in catalog. The following code:

dim w As Int = 100%x

returns 810 while it returns 1080 in another app. Why? :oops::rolleyes:
I've already tried GetDeviceLayoutValues.Width and I got the same result. Where did I mistake?
 

Sagenut

Expert
Licensed User
Longtime User
Is there any side bar on the phone?
You could try the immersive mode to obtain the full screen for your app, if this is what you are seeking.
 
Upvote 0
Top