Thursday 20 July 2023

Awesome Login and Signup Screen Design Using Constraint Layout In Android Studio

 

login screen deisgn using android studio

Today we will going to design Awesome Login Screen Screen Design Using Constraint Layout In Android Studio.Login Screen is mostly first page of any application and it should be attractive and user friendly.

In this tutorial I have designed background of both Login and Signup screen using Photoshop and than in android studio I have used Constraint Layout to design its user interface(UI).

Photoshop Part

  • I have designed Login and Signup Background in Photoshop.
  • You can go through YouTube Tutorial to learn how i have done this.
  • I will attach link of both the background design at the end of this tutorial.

Login Screen Design Using Android Studio

Creating New Android Project (Awesome Login and Signup Screen Design Using Constraint Layout 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 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.

Make Rounded Corner EditBox and Button

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

Drawable resource file Login Button (loginbuttonshape.xml)

Drawable resource file Signup Button (signupbuttonshape.xml)

Drawable resource file EditText Box (textviewshape.xml)

Drawable resource file Button (buttonshape.xml)

Lets Design Login Screen

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

Constraint Layout Login Screen Deisgn In Android Studio

Lets Design Signup Screen

  • Create one layout for signup screen name it as activity_sign_up.xml file and put add following code.

Signup Screen Deisgn In Android Studio

Switch between activity

  • To switch between activity we will use intent.
  • Open MainActivity.java File and write this code.

  • Create one class for signup activity and name it as SignUpActivity.java.
  • Write below code for signup activity.

Awesome Login and Signup Screen Design Using Constraint Layout In Android Studio

 

Awesome Login and Signup Screen Design Using Constraint Layout In Android Studio


No comments:

Post a Comment