Ricky D Well-Known Member Licensed User Longtime User Oct 10, 2017 #1 I have a Samsung galaxy tab 4 10.1 and am wondering what is the scale to use with it. Regards Ricky
M Mahares Expert Licensed User Longtime User Oct 10, 2017 #2 Ricky D said: I have a Samsung galaxy tab 4 10.1 and am wondering what is the scale to use with it. Click to expand... Run this small piece of code on your device in one of your project, you will see in the logs, the sacle, density, dimensions, etc. B4X: If 100%x > 100%y Then Log("Landscape") Else Log("Portrait") Dim lv As LayoutValues = GetDeviceLayoutValues Log(lv & ", size = " & lv.ApproximateScreenSize) Log("H:" & lv.Height & " W:" & lv.Width) Welcome back Rickey. It has been a few years since we heard from you. I hope the Taxi business is treating you well. Upvote 0
Ricky D said: I have a Samsung galaxy tab 4 10.1 and am wondering what is the scale to use with it. Click to expand... Run this small piece of code on your device in one of your project, you will see in the logs, the sacle, density, dimensions, etc. B4X: If 100%x > 100%y Then Log("Landscape") Else Log("Portrait") Dim lv As LayoutValues = GetDeviceLayoutValues Log(lv & ", size = " & lv.ApproximateScreenSize) Log("H:" & lv.Height & " W:" & lv.Width) Welcome back Rickey. It has been a few years since we heard from you. I hope the Taxi business is treating you well.
Ricky D Well-Known Member Licensed User Longtime User Oct 10, 2017 #3 Mahares said: Run this small piece of code on your device in one of your project, you will see in the logs, the sacle, density, dimensions, etc. B4X: If 100%x > 100%y Then Log("Landscape") Else Log("Portrait") Dim lv As LayoutValues = GetDeviceLayoutValues Log(lv & ", size = " & lv.ApproximateScreenSize) Log("H:" & lv.Height & " W:" & lv.Width) Welcome back Rickey. It has been a few years since we heard from you. I hope the Taxi business is treating you well. Click to expand... Thanks. It's getting worse Upvote 0
Mahares said: Run this small piece of code on your device in one of your project, you will see in the logs, the sacle, density, dimensions, etc. B4X: If 100%x > 100%y Then Log("Landscape") Else Log("Portrait") Dim lv As LayoutValues = GetDeviceLayoutValues Log(lv & ", size = " & lv.ApproximateScreenSize) Log("H:" & lv.Height & " W:" & lv.Width) Welcome back Rickey. It has been a few years since we heard from you. I hope the Taxi business is treating you well. Click to expand... Thanks. It's getting worse
Ricky D Well-Known Member Licensed User Longtime User Oct 10, 2017 #4 Mahares said: Run this small piece of code on your device in one of your project, you will see in the logs, the sacle, density, dimensions, etc. B4X: If 100%x > 100%y Then Log("Landscape") Else Log("Portrait") Dim lv As LayoutValues = GetDeviceLayoutValues Log(lv & ", size = " & lv.ApproximateScreenSize) Log("H:" & lv.Height & " W:" & lv.Width) Welcome back Rickey. It has been a few years since we heard from you. I hope the Taxi business is treating you well. Click to expand... Where is the scale there? I know the other things Upvote 0
Mahares said: Run this small piece of code on your device in one of your project, you will see in the logs, the sacle, density, dimensions, etc. B4X: If 100%x > 100%y Then Log("Landscape") Else Log("Portrait") Dim lv As LayoutValues = GetDeviceLayoutValues Log(lv & ", size = " & lv.ApproximateScreenSize) Log("H:" & lv.Height & " W:" & lv.Width) Welcome back Rickey. It has been a few years since we heard from you. I hope the Taxi business is treating you well. Click to expand... Where is the scale there? I know the other things
M Mahares Expert Licensed User Longtime User Oct 10, 2017 #5 Run the code @Ricky D Look at the logs. You will see something like this. This is for my Tab A 7 inch of course: Portrait 800 x 1280, scale = 1.3312501 (213 dpi), size = 7.086558440422683 H:1280 W:800 Upvote 0
Run the code @Ricky D Look at the logs. You will see something like this. This is for my Tab A 7 inch of course: Portrait 800 x 1280, scale = 1.3312501 (213 dpi), size = 7.086558440422683 H:1280 W:800
klaus Expert Licensed User Longtime User Oct 10, 2017 #6 What scale are you speeking of and what for? Have you tryed: Scale = GetDeviceLayoutValues.Scale Upvote 0
Ricky D Well-Known Member Licensed User Longtime User Oct 10, 2017 #7 klaus said: What scale are you speeking of and what for? Have you tryed: Scale = GetDeviceLayoutValues.Scale Click to expand... I'll try both and see what comes out Upvote 0
klaus said: What scale are you speeking of and what for? Have you tryed: Scale = GetDeviceLayoutValues.Scale Click to expand... I'll try both and see what comes out