• Home
  • AI
  • DSA
  • iOS
  • Flutter
  • Android
    • Jetpack
    • Android Tutorials
    • Android development
    • Android Kotlin
  • 5G
  • 4G LTE
    • IoT
  • E-learning
  • Blog
  • Streaming
Saturday, February 28, 2026
  • 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 developmentAndroid Login Screen Design with TextInputLayout & Button Design
Jan. 22, 2019 at 6:49 am
Android developmentAndroid tutorial

Android Login Screen Design with TextInputLayout & Button Design

7 years agoAugust 9, 2021
1.7kviews

Android Login Screen Design with TextInputLayout & Button Design

Table of Contents

Toggle
  • Android Login Screen Design with TextInputLayout & Button Design
  • Open Your login_activity.xml and follow this code.
  • Step 4: Create a Drawable file button.

Hi everyone, in this post, we will learn about another component of Android which is TextInputLayout & Button Design. In this android TextInputLayout & Button Design example, we will learn how to use TextInputLayout & Button Design.

it is a very easy and nice layout to show hints on the top of the layout.

Step 1: First one to  Start Android Studio

Step 2 :  Seconds step to Create a New Project Project ClickOn  ==> File  ==> NEW ==> New Project

Step 3:  Create an Activity Log in

Open Your login_activity.xml and follow this code.

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@color/white"
    tools:context="codeplayon.com.Log_In">


    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:gravity="center"
        android:orientation="vertical">

        <TextView
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:gravity="center"
            android:textColor="@color/colorPrimaryDark"
            android:textSize="30dp"
            android:text=" Welcome to  "/>

        <TextView
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:gravity="center"
            android:textSize="25dp"
            android:textColor="@color/colorAccent"
            android:text="Codeplayon.com"/>


        <android.support.design.widget.TextInputLayout
            android:id="@+id/namelayout"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:hint=" Enter your login UserID"
            android:layout_marginLeft="20dp"
            android:layout_marginRight="20dp"
            android:textColorHint="@color/colorAccent"
            android:layout_marginTop="80dp">


            <EditText
                android:id="@+id/editemail"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:singleLine="true"
                android:drawablePadding="5dp"
                android:textColor="@color/colorPrimaryDark"
                android:textSize="15dp"
                android:backgroundTint="@color/colorPrimaryDark" />

        </android.support.design.widget.TextInputLayout>
        <android.support.design.widget.TextInputLayout
            android:id="@+id/passlayout"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="20dp"
            android:layout_marginLeft="20dp"
            android:layout_marginRight="20dp"
            android:textColorHint="@color/colorAccent"
            android:hint=" Password">

            <EditText
                android:id="@+id/editpass"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:singleLine="true"
                android:drawablePadding="5dp"
                android:inputType="textPassword"
                android:textColor="@color/colorPrimaryDark"
                android:textSize="15dp"
                android:backgroundTint="@color/colorPrimaryDark"
                />

        </android.support.design.widget.TextInputLayout>

        <Button
            android:id="@+id/LogInBtn"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:gravity="center"
            android:layout_marginTop="30dp"
            android:layout_marginLeft="20dp"
            android:layout_marginRight="20dp"
            android:layout_gravity="center"
            android:background="@drawable/button"
            android:text="Login"
            android:textAppearance="?android:textAppearanceLarge"
            android:textStyle="bold"
            android:paddingRight="20dp"
            android:paddingLeft="20dp"
            android:textColor="@color/White"/>
        <TextView
            android:id="@+id/ForgotPassword"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:padding="5dp"
            android:layout_gravity="right"
            android:layout_marginRight="30dp"
            android:textColor="@color/colorPrimaryDark"
            android:text="Forgot Password?"/>


    </LinearLayout>


</LinearLayout>

 

Step 4: Create a Drawable file button.

<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
    <solid android:color="@color/colorPrimaryDark"/>
    <stroke android:width="1dip" android:color="@color/White" />
    <corners android:radius="10dip"/>
    <padding android:left="0dip" android:top="0dip"
        android:right="0dip" android:bottom="0dip" />
</shape>

Complte project run these project and test it
Tags :Androidandroid login and signup screens with material design source codeAndroid Login Screen DesignAndroid Studiobeautiful android login and signup screens with material design source codebeautiful android login screens design source codeButton DesignTextInputLayout
share on Facebookshare on Twitter
Shivam MalikJanuary 22, 2019

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 baddies hub asianpinay.com tech crusader
view all posts
“Rate This App”-link in Google Play store app on the phone
IoT Evolution and Market

You Might Also Like

DDMS and AIDL in Android Development
Android development

Understanding DDMS and AIDL in Android Development

Shivam Malik
abd
Android development

What is Android Debug Bridge (ADB)?

Shivam Malik
How to Handle Background Tasks in an Android Application
Android development

How to Handle Background Tasks in an Android Application

Shivam Malik
components are Services and Broadcast Receivers.
Android development

What is the Difference Between a Service and a Broadcast Receiver in Android?

Shivam Malik
Android compose Layouts example
Android development

Understanding the Purpose and Usage of LayoutInflater in Android

Shivam Malik
What is Android & history of android
Android development

How to Implement Localization in an Android Application: A Comprehensive Guide

Shivam Malik

Get Even More

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

latest posts

Top 3 Free Mac Data Recovery Software [Latest- 2026]
technology

Top 3 Free Mac Data Recovery Software [Latest- 2026]

Shivam Malik
101
Blog

Is PMS India Worth It Compared to Mutual Funds?

Shivam Malik
130
Uncategorized

Documents You Need for Minor Demat Account Opening in India

Shivam Malik
139
Blog

Enterprise Drift Management: Using AI to Maintain ERP Stability at Scale

Shivam Malik
212

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

JoinPD Explained: What It Is, How It Works, and How to Join a Class Easily

1 month agoJanuary 19, 2026
rice purity test

What is your Rice Purity Test Score: Check Score – 2025

1 year agoDecember 22, 2025
Disneyplus.com/begin

Disneyplus.com Begin Guide – Activate Disney Plus Fast

2 months agoDecember 22, 2025
Sitemap.Html
  • Top 3 Free Mac Data Recovery Software [Latest- 2026]
  • Is PMS India Worth It Compared to Mutual Funds?
  • Documents You Need for Minor Demat Account Opening in India
  • Enterprise Drift Management: Using AI to Maintain ERP Stability at Scale
  • JoinPD Explained: What It Is, How It Works, and How to Join a Class Easily
Codeplayon
  • Privacy Policy

Copyright © 2026 Codeplayon |