B billy047 Member Licensed User Longtime User Jul 16, 2011 #1 Hello good day, I can not find how to determine the resolution of the device, to load the corresponding layout. Thanks in advance
Hello good day, I can not find how to determine the resolution of the device, to load the corresponding layout. Thanks in advance
moster67 Expert Licensed User Longtime User Jul 16, 2011 #2 try using GetDeviceLayoutValues which returns the device LayoutValues. B4X: Dim resolution As String resolution=GetDeviceLayoutValues If resolution.IndexOf("240 x 320") <> -1 Then 'do something end if Upvote 0
try using GetDeviceLayoutValues which returns the device LayoutValues. B4X: Dim resolution As String resolution=GetDeviceLayoutValues If resolution.IndexOf("240 x 320") <> -1 Then 'do something end if
M Merlot2309 Active Member Licensed User Longtime User Jul 16, 2011 #3 Hello, According to this site: Supporting Multiple Screens | Android Developers you should use the screen size and density to load layouts. When you do a B4A search (top right) on layout density you will find much more info. Helen. Upvote 0
Hello, According to this site: Supporting Multiple Screens | Android Developers you should use the screen size and density to load layouts. When you do a B4A search (top right) on layout density you will find much more info. Helen.
agraham Expert Licensed User Longtime User Jul 16, 2011 #4 If you put several layout variants for different screens in one layout file when you use the designer Basic4android will choose the best one for the screen when you load the layout file. Upvote 0
If you put several layout variants for different screens in one layout file when you use the designer Basic4android will choose the best one for the screen when you load the layout file.
nfordbscndrd Well-Known Member Licensed User Longtime User Jul 16, 2011 #5 Also see this page in the B4A Documentation Wiki. Upvote 0
B billy047 Member Licensed User Longtime User Jul 16, 2011 #6 Thanks to everyone for sharing their knowledge, I will review all the information you have provided me, again thank you very much. Guillermo Upvote 0
Thanks to everyone for sharing their knowledge, I will review all the information you have provided me, again thank you very much. Guillermo