Login Page

Layout
<?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"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/light_blue"
android:orientation="vertical"
android:padding="16dp">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:fontFamily="@font/purista_medium"
android:text="Welcome Back"
android:textAlignment="center"
android:textColor="@android:color/white"
android:textSize="40sp" />
<android.support.v7.widget.CardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="20dp"
android:layout_marginTop="30dp"
app:cardCornerRadius="20dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="20dp"
android:orientation="vertical">
<ImageView
android:layout_width="200dp"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:src="@drawable/logo_digital_talent" />
<android.support.design.widget.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp">
<android.support.design.widget.TextInputEditText
android:id="@+id/tedt_email"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fontFamily="@font/purista_medium"
android:hint="Email"
android:inputType="textEmailAddress"
android:textSize="18sp" />
</android.support.design.widget.TextInputLayout>
<android.support.design.widget.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="20dp">
<android.support.design.widget.TextInputEditText
android:id="@+id/tedt_password"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fontFamily="@font/purista_medium"
android:hint="Password"
android:inputType="textPassword"
android:textSize="18sp" />
</android.support.design.widget.TextInputLayout>
</LinearLayout>
</android.support.v7.widget.CardView>
<TextView
android:id="@+id/tv_forgot_password"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="20dp"
android:layout_marginTop="10dp"
android:clickable="true"
android:fontFamily="@font/purista_medium"
android:text="Forgot Password?"
android:textAlignment="textEnd"
android:textColor="@drawable/text_color"
android:textSize="18sp" />
<Button
android:id="@+id/btn_login"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="20dp"
android:layout_marginTop="10dp"
android:background="@drawable/button_blue"
android:fontFamily="@font/purista_bold"
android:text="LOGIN"
android:textColor="@android:color/white"
android:textSize="20sp" />
<TextView
android:id="@+id/tv_sign_up"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:layout_marginTop="10dp"
android:clickable="true"
android:fontFamily="@font/purista_medium"
android:gravity="center"
android:text="Dont have an account ? Register Now"
android:textAlignment="center"
android:textColor="@drawable/text_color"
android:textSize="15sp" />
</LinearLayout>Text Color
Buat file di res - drawable

Berikan nama sesuai yang dibutuhkan

LoginActivity
Last updated
Was this helpful?