Profile UI Design - 2
User Profile page is a way to know each other and it is most important page for social app.
It show the personality of that person. when any one looking for someone on social app, first will review profile page.Below page will be use in social app.
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:pancake="clr-namespace:Xamarin.Forms.PancakeView;assembly=Xamarin.Forms.PancakeView"
xmlns:control="clr-namespace:MyProfileUIDesigns.Controls"
x:Class="MyProfileUIDesigns.Views.Design2"
Shell.NavBarIsVisible="False">
<ContentPage.Content>
<Grid HorizontalOptions="FillAndExpand" RowSpacing="0" VerticalOptions="FillAndExpand">
<Grid.RowDefinitions>
<RowDefinition Height="300"></RowDefinition>
<RowDefinition Height="Auto"></RowDefinition>
<RowDefinition Height="Auto"></RowDefinition>
<RowDefinition Height="1"></RowDefinition>
<RowDefinition Height="Auto"></RowDefinition>
</Grid.RowDefinitions>
<Image Grid.Row="0" Opacity="0.8" HeightRequest="350" VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand" Source="https://expertphotography.b-cdn.net/wp-content/uploads/2020/08/social-media-profile-photos-3.jpg" Aspect="AspectFill"></Image>
<Grid Grid.Row="0" HeightRequest="105" VerticalOptions="EndAndExpand" BackgroundColor="Black" Opacity="0.7">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<pancake:PancakeView Grid.Column="0" CornerRadius="50" BackgroundColor="White" HeightRequest="80" WidthRequest="80" Padding="5"
HorizontalOptions="Start"
VerticalOptions="CenterAndExpand">
<pancake:PancakeView.Shadow>
<pancake:DropShadow Color="Black" BlurRadius="30" Offset="0,0"/>
</pancake:PancakeView.Shadow>
<Image Source="https://expertphotography.b-cdn.net/wp-content/uploads/2020/08/social-media-profile-photos-3.jpg" Aspect="AspectFill" Margin="-10"/>
</pancake:PancakeView>
<Label Text="Adam Willian Thomas" Grid.Column="1" Margin="10,30,0,0" VerticalOptions="Start" TextColor="White" FontSize="20" ></Label>
<Label Text="Sr. Software Developer" Grid.Column="1" Margin="10,60,0,0" TextColor="White" FontSize="12" ></Label>
</Grid>
<StackLayout BackgroundColor="Black" Padding="0" Spacing="0" Orientation="Horizontal" HeightRequest="60" Grid.Row="1">
<Label Text="Tweets: 22k" VerticalOptions="CenterAndExpand" HorizontalOptions="CenterAndExpand" TextColor="White" FontAttributes="Bold" FontSize="14" ></Label>
<Label Text="Following: 22k" VerticalOptions="CenterAndExpand" HorizontalOptions="CenterAndExpand" TextColor="White" FontAttributes="Bold" FontSize="14" ></Label>
<Label Text="Likes: 22k" VerticalOptions="CenterAndExpand" HorizontalOptions="CenterAndExpand" TextColor="White" FontAttributes="Bold" FontSize="14" ></Label>
</StackLayout>
<StackLayout Grid.Row="2" Padding="12" Orientation="Horizontal" HorizontalOptions="Start">
<Label Text="Friends" VerticalOptions="CenterAndExpand" TextColor="Black" FontAttributes="Bold" FontSize="22" ></Label>
</StackLayout>
<BoxView BackgroundColor="Black" Grid.Row="3" VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand"></BoxView>
<Grid Grid.Row="4" Padding="20" RowSpacing="20" VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"></RowDefinition>
<RowDefinition Height="Auto"></RowDefinition>
<RowDefinition Height="Auto"></RowDefinition>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<control:PancakeImage Grid.Row="0" Grid.Column="0" ImgSource="https://i.pinimg.com/564x/99/bd/ff/99bdffe5a0bab09e1061f2a6c5cd54cc.jpg" ></control:PancakeImage>
<control:PancakeImage Grid.Row="0" Grid.Column="1" ImgSource="https://i.pinimg.com/564x/47/35/48/47354881fbc384ca929399fc8f9bbaf8.jpg" ></control:PancakeImage>
<control:PancakeImage Grid.Row="0" Grid.Column="2" ImgSource="https://i.pinimg.com/474x/05/23/a2/0523a2adeb72ac0835178cbba3d34b85.jpg" ></control:PancakeImage>
<control:PancakeImage Grid.Row="1" Grid.Column="0" ImgSource="https://i.pinimg.com/474x/d6/c6/28/d6c62875832763b507675d18756fbb63.jpg" ></control:PancakeImage>
<control:PancakeImage Grid.Row="1" Grid.Column="1" ImgSource="https://i.pinimg.com/564x/99/bd/ff/99bdffe5a0bab09e1061f2a6c5cd54cc.jpg" ></control:PancakeImage>
<control:PancakeImage Grid.Row="1" Grid.Column="2" ImgSource="https://i.pinimg.com/564x/76/6c/60/766c60c2ff48c3037638c6531b35a087.jpg" ></control:PancakeImage>
<control:PancakeImage Grid.Row="2" Grid.Column="0" ImgSource="https://funkylife.in/wp-content/uploads/2021/06/whatsapp-dp-pic-4-scaled.jpg" ></control:PancakeImage>
<control:PancakeImage Grid.Row="2" Grid.Column="1" ImgSource="https://funkylife.in/wp-content/uploads/2021/06/whatsapp-dp-26.jpg" ></control:PancakeImage>
<control:PancakeImage Grid.Row="2" Grid.Column="2" ImgSource="https://funkylife.in/wp-content/uploads/2021/08/dp-for-whatsapp-31.jpg" ></control:PancakeImage>
</Grid>
</Grid>
</ContentPage.Content>
</ContentPage>
<ContentView xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:pancake="clr-namespace:Xamarin.Forms.PancakeView;assembly=Xamarin.Forms.PancakeView"
x:Class="MyProfileUIDesigns.Controls.PancakeImage">
<ContentView.Content>
<StackLayout >
<pancake:PancakeView CornerRadius="20" BackgroundColor="White" HeightRequest="85" WidthRequest="85" Padding="5"
HorizontalOptions="Start"
VerticalOptions="CenterAndExpand">
<pancake:PancakeView.Shadow>
<pancake:DropShadow Color="Black" BlurRadius="20" Offset="0,0"/>
</pancake:PancakeView.Shadow>
<Image x:Name="img" Aspect="AspectFill" Margin="-10"/>
</pancake:PancakeView>
</StackLayout>
</ContentView.Content>
</ContentView>
Please watch video for better understanding
Comments
Post a Comment