Thursday 20 July 2023

Login Screen Design In Android Studio

Today we are going to design login screen by using LinearLayout. Login screen should be attractive it is first view which user interact with that’s why is should be user friendly as well. We will begin our designing by simply creating a new project.Login Screen Design In Android Studio.



Creating New Android Project (Login Screen Design In Android Studio)

  • Create a new project in Android Studio File–>New–>New Project.
  • Enter Application Name, Package Name, Select Empty Activity and click on finish.

Add Colors

  • Open App–>values–>colors.xml
  • Specify colors which we are going to use in app.

Add Background Image And Logo

  • Add background image and logo of your app.
  • I will attack the sample background image and logo at the end of this blog.
  • Paste file to mipmap folder.

Add Vector Drawable

  • Add vector drawable which we are going to use in our project.
  • Right click on Drawable folder then New–>Vector Asset.
  • click on Icon then Select Icon and add it to on drawable folder.

dashboard design in android studiovector asset

  • Add three vectors Person,Lock,Lock Open from Vector Asset.
  • You can change color of vector drawable. To change color open that drawable and change FillColor value.

vector change color


Make Rounded Corner EditBox and Button

  • Right click on drawable folder–>New–>Drawable resource file.
  • Write File Name and click Ok.
  • We will create 3 create Drawable resource file one to make rounded corner of email and password edittext box and one for Login button and last for Signup button.
  • We have to add this file to Background property of edittext box and button.

shapeemail.xml for email and password editbox

shapelogin.xml for Login Button

shapesignup.xml for signup button

Lets Design Login Screen

  • Open activity.xml file and put add following code.

Login Screen Design In Android Studio



No comments:

Post a Comment