Learn How to create simple Login UI in android studio
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_margin="10dp"
android:orientation="vertical"
tools:context=".MainActivity">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_margin="10dp"
android:fontFamily="cursive"
android:padding="50dp"
android:text="Login"
android:textColor="@color/colorPrimaryDark"
android:textSize="110sp"
android:textStyle="bold" />
<EditText
android:layout_width="match_parent"
android:layout_height="40dp"
android:background="@drawable/editttext_design"
android:hint="Email"
android:inputType="textEmailAddress"
android:paddingLeft="10dp"
android:textSize="15sp"
android:textStyle="italic" />
<EditText
android:layout_width="match_parent"
android:layout_height="40dp"
android:layout_marginTop="20dp"
android:background="@drawable/editttext_design"
android:hint="Password"
android:inputType="textPassword"
android:paddingLeft="10dp"
android:textSize="15sp"
android:textStyle="italic" />
<Button
android:layout_width="match_parent"
android:layout_height="40dp"
android:layout_marginTop="30dp"
android:background="@drawable/editttext_design"
android:backgroundTint="@color/colorPrimaryDark"
android:text="L O G I N"
android:textColor="#FFFFFF"
android:textStyle="bold" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:fontFamily="serif-monospace"
android:text="Dont have account? Register!"
android:textAlignment="center"
android:textSize="15sp" />
</LinearLayout>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_margin="10dp"
android:orientation="vertical"
tools:context=".MainActivity">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_margin="10dp"
android:fontFamily="cursive"
android:padding="50dp"
android:text="Login"
android:textColor="@color/colorPrimaryDark"
android:textSize="110sp"
android:textStyle="bold" />
<EditText
android:layout_width="match_parent"
android:layout_height="40dp"
android:background="@drawable/editttext_design"
android:hint="Email"
android:inputType="textEmailAddress"
android:paddingLeft="10dp"
android:textSize="15sp"
android:textStyle="italic" />
<EditText
android:layout_width="match_parent"
android:layout_height="40dp"
android:layout_marginTop="20dp"
android:background="@drawable/editttext_design"
android:hint="Password"
android:inputType="textPassword"
android:paddingLeft="10dp"
android:textSize="15sp"
android:textStyle="italic" />
<Button
android:layout_width="match_parent"
android:layout_height="40dp"
android:layout_marginTop="30dp"
android:background="@drawable/editttext_design"
android:backgroundTint="@color/colorPrimaryDark"
android:text="L O G I N"
android:textColor="#FFFFFF"
android:textStyle="bold" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:fontFamily="serif-monospace"
android:text="Dont have account? Register!"
android:textAlignment="center"
android:textSize="15sp" />
</LinearLayout>
Comments
Post a Comment
Thank You,