A Almog Active Member Licensed User Sep 26, 2018 #1 Hello, Does anybody know how to get the ratio of the user's screen? For example 4:3 or 1:0.75.. I tried Activity.height / Activity.width but the result is 1. Thanks in advance
Hello, Does anybody know how to get the ratio of the user's screen? For example 4:3 or 1:0.75.. I tried Activity.height / Activity.width but the result is 1. Thanks in advance
MarkusR Well-Known Member Licensed User Longtime User Sep 26, 2018 #2 i guess its 1 because u useing integer division and not float/double. B4X: Dim lv As LayoutValues = GetDeviceLayoutValues Upvote 0
i guess its 1 because u useing integer division and not float/double. B4X: Dim lv As LayoutValues = GetDeviceLayoutValues
A Almog Active Member Licensed User Sep 26, 2018 #3 MarkusR said: i guess its 1 because u useing integer division and not float/double. B4X: Dim lv As LayoutValues = GetDeviceLayoutValues Click to expand... Thank you Upvote 0
MarkusR said: i guess its 1 because u useing integer division and not float/double. B4X: Dim lv As LayoutValues = GetDeviceLayoutValues Click to expand... Thank you