Matt S. Member Licensed User Jul 5, 2024 #1 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? I've already tried GetDeviceLayoutValues.Width and I got the same result. Where did I mistake?
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? I've already tried GetDeviceLayoutValues.Width and I got the same result. Where did I mistake?
Sagenut Expert Licensed User Longtime User Jul 5, 2024 #2 Your project is B4XPages? In this case use B4X: Root.Width Upvote 0
Matt S. Member Licensed User Jul 5, 2024 #3 Sagenut said: Your project is B4XPages? In this case use B4X: Root.Width Click to expand... Yes, It's B4XPages. I tried Root.Width and unfortunately the same result. Upvote 0
Sagenut said: Your project is B4XPages? In this case use B4X: Root.Width Click to expand... Yes, It's B4XPages. I tried Root.Width and unfortunately the same result.
Sagenut Expert Licensed User Longtime User Jul 5, 2024 #4 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
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.