How to place this Label and Image with Xamarin Forms?

PureKromePureKrome AUMember ✭✭
edited June 2015 in Xamarin.Forms

I'm trying to learn Xamarin forms and wish to try to do the following:

I'm thinking that I need to use a RelativeLayout but I'm struggling to understand how to use the provided tools. All the examples I'm reading say to use things like LayoutFlags and LayoutBounds (like this nice demo and also this one).

But no one is explaining how we should be using them.

Can someone please explain (bonus points if they provide an image with helper lines, etc) how I can do what I'm trying in that image?

Image: it's like it's anchored to the bottom right corner.

Label: it's like it's centered .. and pushed down from the top about 20% odd..

Answers

  • SapienDeveloperSapienDeveloper USMember ✭✭

    try using a Grid to layout your screen the way your want.

  • PureKromePureKrome AUMember ✭✭

    Isn't that what a RelativeLayout is?

  • SapienDeveloperSapienDeveloper USMember ✭✭

    similar, but you wont need to specify pixel coordinates on where to place your controls.

    I find it easier to fill the screen with the Grid and then use proportions to size the grid columns and rows.

Sign In or Register to comment.