Before starting, to get the best out of the post, I’ll leave you some instructional notes so that you have a better experience reproducing the UI:
Let’s divide the original design into blocks
To better understand, I have divided the original design into blocks, which are listed in the order in which we will be reproducing each one, these are:
As the first step, I want to build the floating button. To do it, I’ll use a ScrollView inside a Grid layout to get the desired effect. If you want to know more information about how to do it, you can enter here.
💡If you want to add a Shadow, you can use Xamarin Community Toolkit, check it here!
Let’s break down some important points!
➖ Rounded Image: I used a Frame where the magic property is IsClippedToBounds, which allow us to clip its children to its bound.
Inside this one, I added the Image which must have the same value both in WidthRequest and HeightRequest properties and half of that value in the CornerRadius property, to achieve the exact rounded shape.
You can see more information here.
Let’s continue with the Topics list, here the objective is to make it as scalable as possible using a CollectionView, in this way you can add as many Topics / tags as you need in your App without having to modify the XAML. 😎
This block requires that the information is presented with a repetitive pattern which must be divided into two columns, for this, let’s also use the CollectionView.
Do you remember the first step where we made the floating button? Yep! Well, in this step we are going to work on the description block and this is where we are going to see the “float” effect reflected!
2 thoughts on “Replicating Good Mood UI in Xamarin Forms”