W wl Well-Known Member Licensed User Longtime User Dec 29, 2011 #1 Hello, I'm starting on my first B4A project. After having read the "getting started" PDF file it still remains a bit unclear to me on how to deal with different screen resolutions: how to center controls ? What is the impact of the LCD density ? ... Is there any document or post that could clarify these issues ? Thanks ! Last edited: Dec 29, 2011
Hello, I'm starting on my first B4A project. After having read the "getting started" PDF file it still remains a bit unclear to me on how to deal with different screen resolutions: how to center controls ? What is the impact of the LCD density ? ... Is there any document or post that could clarify these issues ? Thanks !
NJDude Expert Licensed User Longtime User Dec 29, 2011 #2 You can read THIS or search the forum for "screen resolution". Upvote 0
W wl Well-Known Member Licensed User Longtime User Dec 29, 2011 #3 Thanks !!! To be more specific: it is the example on p.72-73 of the PDF that is unclear to me. UPDATE: could it be there is an error on p.72 ? The H/W ratio of 240/320 (first resolution) should be 4/3 and the one of 320/480 should be 3/2... It seems both ratio's have been switched ? With this correction the example becomes clear ... Also: it seems as if the layout should scale automatically (in width) ? On a quick test I did it did not seem to scale at all. Thanks !! Last edited: Dec 29, 2011 Upvote 0
Thanks !!! To be more specific: it is the example on p.72-73 of the PDF that is unclear to me. UPDATE: could it be there is an error on p.72 ? The H/W ratio of 240/320 (first resolution) should be 4/3 and the one of 320/480 should be 3/2... It seems both ratio's have been switched ? With this correction the example becomes clear ... Also: it seems as if the layout should scale automatically (in width) ? On a quick test I did it did not seem to scale at all. Thanks !!
NJDude Expert Licensed User Longtime User Dec 29, 2011 #4 What is exactly you are not getting?, also, can you post your test code? that way a better explanation could be done. Upvote 0
What is exactly you are not getting?, also, can you post your test code? that way a better explanation could be done.
W wl Well-Known Member Licensed User Longtime User Dec 29, 2011 #5 NJDude said: What is exactly you are not getting?, also, can you post your test code? that way a better explanation could be done. Click to expand... :sign0098: Hi NJDude, Thanks for your concern ! I was just experimenting with the layout/designer... I guess I was confused because of the error in the manual... Still not sure where the density comes into place ... thanks again !! Upvote 0
NJDude said: What is exactly you are not getting?, also, can you post your test code? that way a better explanation could be done. Click to expand... :sign0098: Hi NJDude, Thanks for your concern ! I was just experimenting with the layout/designer... I guess I was confused because of the error in the manual... Still not sure where the density comes into place ... thanks again !!
NJDude Expert Licensed User Longtime User Dec 29, 2011 #6 Still not sure where the density comes into place Click to expand... Density is the Dots Per Inch. Upvote 0
P parijs Active Member Licensed User Longtime User Dec 29, 2011 #7 I think he's right. Msgbox(LayoutVal ,"this is LayoutVal ?") gif me 480x800 scale = 1,5 (240 dpi) but go to the 480 x 320 scale = 1 (160dpi).bal Upvote 0
I think he's right. Msgbox(LayoutVal ,"this is LayoutVal ?") gif me 480x800 scale = 1,5 (240 dpi) but go to the 480 x 320 scale = 1 (160dpi).bal
W wl Well-Known Member Licensed User Longtime User Dec 30, 2011 #8 parijs said: I think he's right. Msgbox(LayoutVal ,"this is LayoutVal ?") gif me 480x800 scale = 1,5 (240 dpi) but go to the 480 x 320 scale = 1 (160dpi).bal Click to expand... Hi Parijs, Who's right with what ? Thanks ! Upvote 0
parijs said: I think he's right. Msgbox(LayoutVal ,"this is LayoutVal ?") gif me 480x800 scale = 1,5 (240 dpi) but go to the 480 x 320 scale = 1 (160dpi).bal Click to expand... Hi Parijs, Who's right with what ? Thanks !
P parijs Active Member Licensed User Longtime User Dec 30, 2011 #9 If my phone say he is 480x800 scale = 1,5 (240 dpi) And the choice is 480 x 320 scale = 1 (160dpi).bal is not wrong? Upvote 0
If my phone say he is 480x800 scale = 1,5 (240 dpi) And the choice is 480 x 320 scale = 1 (160dpi).bal is not wrong?
klaus Expert Licensed User Longtime User Dec 30, 2011 #10 UPDATE: could it be there is an error on p.72 ? The H/W ratio of 240/320 (first resolution) should be 4/3 and the one of 320/480 should be 3/2... It seems both ratio's have been switched ? With this correction the example becomes clear ... Click to expand... Yes, you are right, the ratios are wrong. Woll be fixed in the next update. Thank you for reporting it and Best regards. Upvote 0
UPDATE: could it be there is an error on p.72 ? The H/W ratio of 240/320 (first resolution) should be 4/3 and the one of 320/480 should be 3/2... It seems both ratio's have been switched ? With this correction the example becomes clear ... Click to expand... Yes, you are right, the ratios are wrong. Woll be fixed in the next update. Thank you for reporting it and Best regards.
W wl Well-Known Member Licensed User Longtime User Jan 5, 2012 #11 klaus said: Yes, you are right, the ratios are wrong. Woll be fixed in the next update. Thank you for reporting it and Best regards. Click to expand... Hi Klaus, you're welcome. (I also found a few typo's, but this error was a bit confusing). You did a great job in writing the PDF ! Thanks, PS: might be useful to add some extra chapters on libraries (eg: the C2DM library - which is of great interest to me Upvote 0
klaus said: Yes, you are right, the ratios are wrong. Woll be fixed in the next update. Thank you for reporting it and Best regards. Click to expand... Hi Klaus, you're welcome. (I also found a few typo's, but this error was a bit confusing). You did a great job in writing the PDF ! Thanks, PS: might be useful to add some extra chapters on libraries (eg: the C2DM library - which is of great interest to me
klaus Expert Licensed User Longtime User Jan 5, 2012 #12 I also found a few typo's... Click to expand... Could you please report those too in the Beginner's Guide thread, so the document will be improved. Thank you in advance and best regards. Upvote 0
I also found a few typo's... Click to expand... Could you please report those too in the Beginner's Guide thread, so the document will be improved. Thank you in advance and best regards.