UI

Replicating Contact & Message UI in Xamarin Forms

Howdy!!! 🙋‍♀️In this article, we are going to replicate a Contact & Message UI obtained from Dribble. I hope this is useful for you! 💚
 

⚠ 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:

➖ At the beginning, you will see an image with the original UI where you will see divided into blocks as we’ll be working on each part of the design.
.
➖ Each block presents the image with the design explicitly that we’ll be working on that block, they are highlighted in a box.
.
➖ In each of the code blocks, you can see a comment that says: “Here add the code that is being explained in the next block“. To keep you as focused as possible, this part indicates to you that the next block code explanation goes right where the comment line is added.
.
➖ I will not be using styles so that the properties added to the various components can be seen and understood faster in the explanation process.
.
 

Let’s start!

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:

La imagen tiene un atributo ALT vacío; su nombre de archivo es Screen-Shot-2022-03-08-at-11.31.08-PM-1024x818.png


La imagen tiene un atributo ALT vacío; su nombre de archivo es Screen-Shot-2022-03-09-at-2.13.44-PM-1024x46.png

Let’s start by creating our first screen, which we’ll name Contacts.xaml.

Let’s establish our main Layout: This layout is the one that will contain all the elements that make up our UI, for this, we will use the Grid.

As we see in the image above, this block is made up of three controls, which we will detail below:

La imagen tiene un atributo ALT vacío; su nombre de archivo es Screen-Shot-2022-03-09-at-2.26.53-PM-590x1024.png

    • Contact title:

    • Add Button:

    • Searchbar:


La imagen tiene un atributo ALT vacío; su nombre de archivo es Screen-Shot-2022-03-09-at-3.11.35-PM-1024x47.png

La imagen tiene un atributo ALT vacío; su nombre de archivo es Screen-Shot-2022-03-09-at-3.20.06-PM-625x1024.pngContinuing with de Favorite Block, let’s replicate a contact list, which is even similar to Instagram Stories 🧐🧐, for this, we will use a Horizontal CollectionView.

Also, to round the edges of the images we will use a Frame. Check out this super interesting technique!


 

La imagen tiene un atributo ALT vacío; su nombre de archivo es Screen-Shot-2022-03-09-at-4.12.59-PM-593x1024.pngTo finish with our first screen, let’s work with the “Active Contacts” block, now we will add a set of contacts followed by their status!

To do it, let’s use a Frame, and inside, let’s add a CollectionView with Vertical Orientation to display the list!


La imagen tiene un atributo ALT vacío; su nombre de archivo es Screen-Shot-2022-03-09-at-4.15.35-PM-1024x46.png

For the “Messages” block, we will create another page called “MessagePage.xaml”. As main layout we’ll be also using a Grid!

La imagen tiene un atributo ALT vacío; su nombre de archivo es Screen-Shot-2022-03-09-at-5.02.23-PM-569x1024.pngThis screen is composed of the following components:

  • Main title and message indicator:

  • Messages from contacts:


 
In the main image of this post, I added some screenshots of the IOS version,  now I’ll leave those of the Android one.La imagen tiene un atributo ALT vacío; su nombre de archivo es Screen-Shot-2022-03-10-at-9.24.33-PM-1024x941.png
 

And our Contact & Message UI  is done! ?.
 
 
To see the complete code structure you can enter to my Github repository ?
 
 
 
 
Tagged , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *