Day 2: Login and Signup Screen UI in Android(Shouse)
Friday, July 17, 2020
Comment
In this section, I'm going to cover UI design work for login and signup activity. Before developing any android app always remember that user interface performs the most important part to success your android application.
For SHouse, We are going to use OTP authentication for login and if user not registered previously then he/she will redirect to personal details activity. I'm not covering backend part in this blog I'll do this part in next part. So let's start our UI design process step by step.
Step 1: As we are using MVVM design pattern so keep your everything structured. So, create a new package in the UI directory with name "Auth". After that create LoginActivity and SignupActivity in the Auth package. Your directory structure looks like as follow:
Step 2: For this application, I'm going to use two custom fonts one is Quntify and another is Raleway. So to implement these fonts in our application firstly I need to set up fonts in my resource directory. For this, I'm going to create a resource directory with name 'font' in res folder and past my font files in this folder. Click Here To Download Fonts
Step 3: Add all required drawable icon in the drawable resource directory. Click Here to Download All Used Drawable icon.
Step 4: Add Colors in colors.xml. Your file looks like below:
Step 5: In the UI design we need to create Edit Text with round corners and shadow effects so perform this I'm going to create round_corner.xml drawable resource with the following code:
Step 6: Similarly we need to create a rounded button with a gradient colour effect. So, I created round_button.xml drawable resource for this effect.
0 Response to "Day 2: Login and Signup Screen UI in Android(Shouse)"
Post a Comment