• Home
  • AI
  • DSA
  • iOS
  • Flutter
  • Android
    • Jetpack
    • Android Tutorials
    • Android development
    • Android Kotlin
  • 5G
  • 4G LTE
    • IoT
  • E-learning
  • Blog
  • Streaming
Saturday, October 4, 2025
  • Home
  • AI
  • DSA
  • iOS
  • Flutter
  • Android
    • Jetpack
    • Android Tutorials
    • Android development
    • Android Kotlin
  • 5G
  • 4G LTE
    • IoT
  • E-learning
  • Blog
  • Streaming
subscribe
subscribe to my newsletter!

"Get all latest content delivered straight to your inbox."

[mc4wp_form id="36"]
Codeplayon
Codeplayon
  • Home
  • AI
  • DSA
  • iOS
  • Flutter
  • Android
    • Jetpack
    • Android Tutorials
    • Android development
    • Android Kotlin
  • 5G
  • 4G LTE
    • IoT
  • E-learning
  • Blog
  • Streaming
HomeAndroid tutorialAndroid login screen design with animation – Android Studio 2022
Oct. 27, 2018 at 7:11 am
Android tutorial

Android login screen design with animation – Android Studio 2022

7 years agoDecember 27, 2024
Android splash screen Android login screen design
1.4kviews

Hey in this example I am sharing Android login screen UI design with awesome animation. you can just follow these simple steps a create login screen design in android. let create an android login screen for a beautiful UI design with awesome animation.

This is the second part of our Android Studio tutorial about a traveling android application. In this article , we’re creating the login screen android example with materials components and utilize an animation shared between the login screen and splash screen within android studio. Additionally, you can watch this Youtube video. Follow the video and get the code directly into your email. Join my mailing list to receive the latest updates and codes regarding android.

More search resulte :-

Creative Android Login Screen  in Android Studio?

Table of Contents

Toggle
  • Creative Android Login Screen  in Android Studio?
  • Android login screen design with awesome animation

Login Screen is a security test which identifies and authenticates credentials that allow access to the application.

Everyone would like to design an application that will attract users. Android Studio offers a lot of components for designing an attractive screen. However, to improve the appearance of your screen, material components are utilized. In this post, you’ll learn how to build an account screen with materials components. To gain the complete information about the material component you need to click here.

Before you begin to create a Login Screen you can create the Splash Screen. Splash Screen is first screen that is displayed prior to the login. It can be seen on the GIF image above. To create a Splash Screen go through the post.

Okay, let’s get started.

 

Android login screen design with awesome animation

Step 1:-   Start Android Studio

Step 2:-  To Create a New Project Project Click On  ==>  File  ==> NEW ==> New Project.  and Create your login  activity .

Step 3:- Add Dependency in your  build.gradle .

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })
    compile 'com.android.support:appcompat-v7:28.+'
    compile 'com.android.support:design:28.+'
    compile 'com.android.support:support-v4:28.+'
    compile 'com.android.support.constraint:constraint-layout:1.0.2'
    testCompile 'junit:junit:4.12'
}

Add your value color file

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <color name="colorPrimary">#FFEB3B</color>
    <color name="colorPrimaryDark">#FBC02D</color>
    <color name="colorAccent">#6200EA</color>
    <color name="white">#fff</color>

    <!-- 1st Gradient color -->
    <color name="colorPurple_A400">#D500F9</color>
    <color name="colorPurple_900">#4A148C</color>
    <!-- ./ 1st Gradient color -->

    <!-- 2nd Gradient color -->
    <color name="colorAmber_A400">#FFC400</color>
    <color name="colorAmber_900">#FF6F00</color>
    <!-- ./ 2nd Gradient color -->

    <!-- 3rd Gradient color -->
    <color name="colorGreen_A400">#00E676</color>
    <color name="colorGreen_900">#1B5E20</color>
    <!-- ./ 3rd Gradient color -->

    <!-- 4th Gradient color -->
    <color name="colorRed_A400">#FF1744</color>
    <color name="colorRed_900">#B71C1C</color>
    <!-- ./ 4th Gradient color -->
</resources>

Step 4:-  Create a Drawable  file drawable_amber_gradient.xml  Right Click on ==> drawable ==>New ==> drawable resource file .

<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
    <gradient
        android:angle="135"
        android:endColor="@color/colorAmber_A400"
        android:startColor="@color/colorAmber_900" />
</shape>

Step 5:-  Create a Drawable  file drawable_green_gradient.xml Right Click on ==> drawable ==>New ==> drawable resource file.

<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<gradient
    android:angle="0"
    android:endColor="@color/colorGreen_A400"
    android:startColor="@color/colorGreen_900" />
</shape>

 

Step 6:-  Create a Drawable  file drawable_purple_gradient.xml Right Click on ==> drawable ==>New ==> drawable resource file .

<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
    <gradient
        android:angle="90"
        android:endColor="@color/colorPurple_A400"
        android:startColor="@color/colorPurple_900" />
</shape>

Step 7 :- Create a Drawable  file  drawable_red_gradient.xml  Right Click on ==> drawable ==>New ==> drawable resource file .

<?xml version=”1.0″ encoding=”utf-8″?>
<shape xmlns:android=”http://schemas.android.com/apk/res/android”>
<gradient
android:angle=”45″
android:endColor=”@color/colorRed_A400″
android:startColor=”@color/colorRed_900″ />
</shape>

Step 8 :- Create a Drawable  file  drawable_gradient_animation_list.xml  Right Click on ==> drawable ==>New ==> drawable resource file .

<?xml version="1.0" encoding="utf-8"?>
<animation-list xmlns:android="http://schemas.android.com/apk/res/android">
    <item
        android:drawable="@drawable/drawable_purple_gradient"
        android:duration="6000" />
    <item
        android:drawable="@drawable/drawable_amber_gradient"
        android:duration="6000" />
    <item
        android:drawable="@drawable/drawable_green_gradient"
        android:duration="6000" />
    <item
        android:drawable="@drawable/drawable_red_gradient"
        android:duration="6000" />
</animation-list>

Step 9:- Open your xml file  activity_log_in.xml.  and add these code in your xml file .

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/RelativeLayout"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:gravity="center"
    android:background="@drawable/drawable_gradient_animation_list"
    tools:context="com.rocareindia.customermalik.LogInActivity">
<LinearLayout
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    android:gravity="center"
    android:theme="@style/Theme.Transparent">
    <ImageView
        android:layout_width="150dp"
        android:layout_height="100dp"
        android:src="@drawable/logo_icon"
        android:tint="@color/white"/>

    <EditText
        android:id="@+id/UserEmail"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_margin="10dp"
        android:padding="15dp"
        android:background="@drawable/shapeemail"
        android:drawableLeft="@drawable/ic_perm_identity_white_24dp"
        android:drawablePadding="10dp"
        android:inputType="textEmailAddress"
        android:singleLine="true"
        android:hint="Email"
        android:textColor="@color/white"
        android:textColorHint="@color/white"
        android:textColorHighlight="@color/white"/>

    <EditText
        android:id="@+id/UserPassword"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_margin="10dp"
        android:singleLine="true"
        android:padding="15dp"
        android:inputType="textPassword"
        android:background="@drawable/shapeemail"
        android:drawableLeft="@drawable/ic_lock_outline_white_24dp"
        android:drawablePadding="10dp"
        android:hint="Password"
        android:textColor="@color/white"
        android:textColorHint="@color/white"
        android:textColorHighlight="@color/white"/>
    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal">

        <CheckBox
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="Remember Me"
            android:layout_marginRight="10dp"
            android:layout_marginLeft="10dp"
            android:layout_marginBottom="10dp"
            android:layout_marginTop="0dp"
            android:textColor="@color/white"
            android:buttonTint="@color/white"
            android:checked="true"/>
        <TextView
            android:id="@+id/Forgot_Pass"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:text="Forget Password"
            android:layout_marginRight="10dp"
            android:layout_marginLeft="10dp"
            android:layout_marginBottom="10dp"
            android:layout_marginTop="0dp"
            android:gravity="center"
            android:textColor="@color/white"
            android:drawableLeft="@drawable/ic_lock_outline_white_24dp"
            android:drawablePadding="6dp"
            android:padding="4dp"/>
    </LinearLayout>

    <Button
        android:id="@+id/Log_Btn"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="Log In"
        android:shadowColor="@android:color/transparent"
        android:padding="15dp"
        android:layout_marginRight="10dp"
        android:layout_marginLeft="10dp"
        android:layout_marginBottom="10dp"
        android:background="@drawable/shapelogin"/>

    <Button
        android:id="@+id/Reg_Btn"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="Sign Up"
        android:shadowColor="@android:color/transparent"
        android:padding="15dp"
        android:layout_marginRight="10dp"
        android:layout_marginLeft="10dp"
        android:layout_marginBottom="10dp"
        android:layout_marginTop="10dp"
        android:background="@drawable/shapesignup"
        android:textColor="@color/white"/>

</LinearLayout>
</RelativeLayout>


Step 10:-  Open your java class Login.java and a cope add these code.

public class LogInActivity extends AppCompatActivity {
    private AnimationDrawable animationDrawable;
    RelativeLayout relativelayout;
    Button LoginBtn,RegBtn;
    EditText UserName,UserPass;
    TextView ForgotPass;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_log_in);
       relativelayout=(RelativeLayout)findViewById(R.id.RelativeLayout);
        // initializing animation drawable by getting background from RelativeLayout layout
        animationDrawable = (AnimationDrawable) relativelayout.getBackground();
        // setting enter fade animation duration to 5 seconds
        animationDrawable.setEnterFadeDuration(5000);
        // setting exit fade animation duration to 2 seconds
        animationDrawable.setExitFadeDuration(2000);
        UserName=(EditText)findViewById(R.id.UserEmail);
        UserPass=(EditText)findViewById(R.id.UserPassword);
        LoginBtn=(Button)findViewById(R.id.Log_Btn);
        RegBtn=(Button)findViewById(R.id.Reg_Btn);
        RegBtn.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent=new Intent(LogInActivity.this,Registration.class);
                startActivity(intent);
                finish();
            }
        });
        ForgotPass=(TextView)findViewById(R.id.Forgot_Pass);

    }
    @Override
    protected void onResume() {
        super.onResume();
        if (animationDrawable != null && !animationDrawable.isRunning()) {
            // start the animation
            animationDrawable.start();
        }

    }

    @Override
    protected void onPause() {
        super.onPause();
        if (animationDrawable != null && animationDrawable.isRunning()) {
            // stop the animation
            animationDrawable.stop();
        }
    }
}

 

complete that run you app and test it.

 

Read More Tutorial 

  • Android Studio Bumblebee New Features 2022
  • Codeplayon Jetpack Compose Tutorial 
  • Codeplayon Android Tutorial 
  • Codeplayon Flutter Tutorial 
  • Codeplayon on Github
Tags :Android login screen ui design with awesome animationAndroid Splash Screen Animationanimation in androidAwesome login screenbeautiful android login and signup screens with material design source codeHow to implement an impressive login screen?Login ScreenLogin screen design Animation
share on Facebookshare on Twitter
Shivam MalikOctober 27, 2018

Shivam Malik

Welcome to my blog! I’m Ritu Malik, and here at Codeplayon.com, we are dedicated to delivering timely and well-researched content. Our passion for knowledge shines through in the diverse range of topics we cover. Over the years, we have explored various niches such as business, finance, technology, marketing, lifestyle, website reviews and many others. Pinay Viral sfm compile AsianPinay taper fade haircut Pinay flex Pinay hub pinay Viral Fsi blog com pinay yum pinayyum.com
view all posts
Android splash screen UI design 2022
Floating Action Button and Sub Floating button in Android 2022

You Might Also Like

Android minecraft compass drawing App Example
Android tutorial

Android minecraft compass drawing App Example

Shivam Malik
Paytm Payment Gateway
Android tutorial

How to Integrate Paytm Payment Gateway in Android App 2024

Shivam Malik
Dynamic Launcher Icon and Name for Android App
Android developmentAndroid tutorial

Dynamic Launcher Icon and Name for Android App 2024

Shivam Malik
android user permission
Android tutorial

android user permission – How to check Grants Permissions at Run-Time?

Shivam Malik
recyclerview
Android tutorial

Android RecyclerView and its working?

Shivam Malik
GIF image on Splash Screen
Android tutorial

How to use GIF image on Splash Screen In Android

Shivam Malik

Get Even More

"Get all latest content delivered straight to your inbox."
[mc4wp_form id="36"]

latest posts

picuki codeplayon.com
Blog

Picuki – Best Instagram Viewer & Instagram Downloader 2025

Shivam Malik
3k
What Is Redeepseek Com
technology

Redeepseek Com: The Future of Smarter Tech Insights

Shivam Malik
808
What is single sign-on (SSO)
AI

What is SSO Single Sign-On? | How It Works & Benefits

Shivam Malik
962
Android 16’s New Orientation Rules (2)
Android Kotlin

Android 16’s New Orientation Rules | The End of Portrait-Only Apps: Adapting

Shivam Malik
998

find me on socials

Search

Contact Info

Contact information that feels like a warm, friendly smile.

Email:Info.codeplayon@gmail.com
Website:Codeplayon

popular posts

Joinpd.con code

How to get Pear Deck Join Code For JoinPD.con 2025?

2 months agoAugust 15, 2025
rice purity test

What is Rice Purity Test Score Meaning: Check Score [2025]

9 months agoAugust 28, 2025
Disneyplus.com/begin

How to Activate Disneyplus.com begin account 2025

3 months agoAugust 4, 2025
Sitemap.Html
  • Picuki – Best Instagram Viewer & Instagram Downloader 2025
  • Redeepseek Com: The Future of Smarter Tech Insights
  • What is SSO Single Sign-On? | How It Works & Benefits
  • Android 16’s New Orientation Rules | The End of Portrait-Only Apps: Adapting
  • CPSB LaunchPad: Enhancing Educational Access and Engagement
Codeplayon
  • Privacy Policy

Copyright © 2024 Codeplayon | NewsMozi Asian Pinay.com Taper Fade Haircut sfm compile club Asian Pinay pinayhub.com pinayflex.com pinay Viral Fsi blog com