Forum Xamarin.Forms
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

Responsive Layout For Image and Text.

DemonolithDemonolith Member ✭✭
edited November 2018 in Xamarin.Forms

So I want to create a responsive layout for Images and Labels Font Size and wondering what would be the best approach to this.
For the font size I am using OnIdiom which works great between tablet and phone. However, what do I do for say, targeting an iPhone 5 and an iPhone X separately?
iPhone 5 is 1136 x 640 pixels.
iPhone X is 2436 x 1125 pixels.
So for font size it doesn't work for both. Text falls out of place and out of frame. Is there a way around this? To target specific device sizes?
For images, at least I can edit the targeted sizes based on pixel density though it's not always perfect.

Best Answer


Sign In or Register to comment.