Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

How do I make a view fit the width and half the height no matter the screen size?

$
0
0

I'm trying to do something really basic. I want a view to fill half the height of the device and the entire width of the device. I want to use constraints to make this consistent across all screens. But I've had no luck. For the width, my idea was to set the leading and trailing edge constraint to 0. I'm not really sure the difference between Leading/Trailing and Left/Right constraints but I can't find Left/Right constraints even though I've seen people talk about them... Anyways I don't know how to manually add constraints. Well actually I know how to add Width, Height, and Aspect Ratio constraints by clicking the view and making go into "constraint" mode. I know how to add recommended constraints and edit them but it never gives me both Leading and Trailing. It's always one or the other. Can anybody help please? Thanks in advance.


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>