Skip to content

Instantly share code, notes, and snippets.

Created March 16, 2018 09:44
Show Gist options
  • Save anonymous/39759e73de4e858b6b192e423994e3fb to your computer and use it in GitHub Desktop.
Save anonymous/39759e73de4e858b6b192e423994e3fb to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:AbsoluteLayoutSample"
x:Class="AbsoluteLayoutSample.AbsoluteLayoutSamplePage">
<AbsoluteLayout Padding="20" VerticalOptions="CenterAndExpand">
<Entry AbsoluteLayout.LayoutBounds="0,40,1,40" AbsoluteLayout.LayoutFlags="XProportional,WidthProportional" Placeholder="UserName" HorizontalOptions="FillAndExpand"/>
<Entry AbsoluteLayout.LayoutBounds="0,85,1,40" AbsoluteLayout.LayoutFlags="XProportional,WidthProportional" Placeholder="Password" HorizontalOptions="FillAndExpand"/>
<Entry AbsoluteLayout.LayoutBounds="0,130,0.5,40" AbsoluteLayout.LayoutFlags="XProportional,WidthProportional" Placeholder="NickName" HorizontalOptions="FillAndExpand"/>
<Entry AbsoluteLayout.LayoutBounds="1,130,0.5,40" AbsoluteLayout.LayoutFlags="XProportional,WidthProportional" Placeholder="Phone" HorizontalOptions="FillAndExpand"/>
<Button AbsoluteLayout.LayoutBounds="0,180,1,40" AbsoluteLayout.LayoutFlags="XProportional,WidthProportional" HorizontalOptions="FillAndExpand" Text="Register" TextColor="White" BackgroundColor="Black"/>
</AbsoluteLayout>
</ContentPage>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment