Howdy!!! ?♀In this case we are going to replicate a Burger App UI obtained from Dribble. You can check the design here!
⚠ 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 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 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:
Defining the main structure: To start developing the complete design structure that will contain our first screen I will use a
Grid.
As we could see in the image of the structure, we will be replicating two screen, for the correct understanding we will divide the replication process for each one, we will finish the first one and we will see its result, and then the second one.
.
Once we create the main structure Let’s start with the first block! In this part we will be working with the Main Wall block and to replicate it we just need to add the following parts:
.
➖ Information icons
➖ Searchbar
.
Let’s continue with our next block named 1.2 Menu. Here we will be using a horizontal CollectionView. It’s important that the project adheres to the MVVM Design pattern. That’s why I used text properties Binded.
To replicate this block we just need to add the following parts:
.
Finally, to complete the first screen I also used a
CollectionView to replicate the
“1.3 Popular menu”.
.
Finally, the result of the first screen! ??
Let’s continue with the second page!
Defining the main structure: To start developing the complete design structure that will contain our second screen I will use a Grid.
.
Once created the main structure of our second screen, let’s start with the first block! In this part we will be working with the Main picture block and to replicate it we just need to add the following parts:
.
➖ Main image
.
➖ An overlapped title
.
.
.
.
.
.
.
To replicate the “Rounded board” block, we just need to work with PancakeView to achieve the oval shapes above.
.
.
To replicate the “Legend” block we just need to add the following parts:
.
➖ Number of Restaurants
.
➖ More icon
.
.
Finally, the last block named Menu options! I also used a CollectionView to replicate it!
And the result of the second screen it’s done! ??
And our Burger UI App design is done! ?
To see the complete code you can enter to my Github repository
https://github.com/LeomarisReyes/BurgersUIApp
Spanish post: https://medium.com/@reyes.leomaris/replicando-ui-de-hamburguesas-en-xamarin-forms-17c5970ae5a1
Thanks for reading!!!
Tagged Replicating UI, UI, Xamarin, Xamarin Forms
Wow! Gr8
Thanks! 😊
Hi Leomaris,
thanks for this post!! Just one correction: At the end of your article, you have 2 links to your spanish article instead of a link to your github https://github.com/LeomarisReyes/BurgersUIApp 🙂 And the rest will be checked now as I’m now following your instructions and try to rebuild 🙂
Many thanks!
Oh thanks! It was already fixed!
Great article. Thanks for taking the time to break the app into pieces. I do a lot of XAML, but I love to see how others approach a design. This was super helpful.
?? It’s a pleasure for me!
Thank you , I love You for This !
It’s a pleasure for me! 🙈