Android Question Cross Platform

stevenindon

Active Member
Licensed User
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.
 

stevenindon

Active Member
Licensed User
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:
Upvote 0

MicroDrie

Well-Known Member
Licensed User
Longtime User
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
Cookies are required to use this site. You must accept them to continue using the site. Learn more…