S stevenindon Active Member Licensed User Dec 5, 2021 #1 Hello all, Sorry to bring this issue to the B4A community as i am currently developing CustomView supporting both android and IOS. I have manage to get my CustomView across both OS but there are still some minor issue on the %x and %y when i position labels between these different platform. They turn out at slightly different position * Due to their respective screen resolution. (Comparing my android phone vs iPhone 6) Is there a better way of doing this accurately at least? ( Other than using %x and %y / or maybe dip *IOS dont recognise dip as i know ) Thanks.
Hello all, Sorry to bring this issue to the B4A community as i am currently developing CustomView supporting both android and IOS. I have manage to get my CustomView across both OS but there are still some minor issue on the %x and %y when i position labels between these different platform. They turn out at slightly different position * Due to their respective screen resolution. (Comparing my android phone vs iPhone 6) Is there a better way of doing this accurately at least? ( Other than using %x and %y / or maybe dip *IOS dont recognise dip as i know ) Thanks.
Alexander Stolte Expert Licensed User Longtime User Dec 5, 2021 #2 Never use %x or %y outside the Base_Resize event. Use Root.Width or Root.Height. Upvote 0
S stevenindon Active Member Licensed User Dec 5, 2021 #3 Alexander, I think you get my question wrongly. This is not about resize problem. This is about moving labels inside self created CustomView. Throwing 20%y to assign a label top (In the Custom View) in Android vs IOS both looks different (Lands in slightly different y position) Anyone can shed a bit of light in this? Thanks Last edited: Dec 5, 2021 Upvote 0
Alexander, I think you get my question wrongly. This is not about resize problem. This is about moving labels inside self created CustomView. Throwing 20%y to assign a label top (In the Custom View) in Android vs IOS both looks different (Lands in slightly different y position) Anyone can shed a bit of light in this? Thanks
MicroDrie Well-Known Member Licensed User Longtime User Dec 7, 2021 #4 Maybe the old “Supporting multiple screens—tips and best practices” and visual designer video tutorial: https://www.b4x.com/etp.html can help you? Upvote 0
Maybe the old “Supporting multiple screens—tips and best practices” and visual designer video tutorial: https://www.b4x.com/etp.html can help you?
klaus Expert Licensed User Longtime User Dec 7, 2021 #5 Can you show us some screenshots with your concern. And, better, post a small project showing the problem, so we could see what exactly you have done and how. Then we could give you concrete advice. Upvote 0
Can you show us some screenshots with your concern. And, better, post a small project showing the problem, so we could see what exactly you have done and how. Then we could give you concrete advice.