Skip to content

Instantly share code, notes, and snippets.

@khanh96le
Created September 11, 2018 01:40
Show Gist options
  • Save khanh96le/70522bcc64cfdd1e54cc32118896bbdc to your computer and use it in GitHub Desktop.
Save khanh96le/70522bcc64cfdd1e54cc32118896bbdc to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
<EditText
android:id="@+id/txtEmailLogin"
android:layout_width="300dp"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_marginTop="85dp"
android:ems="10"
android:hint="@string/username"
android:inputType="textEmailAddress"
android:textColor="@android:color/black"
android:textSize="14sp"
android:typeface="sans"
android:visibility="visible" />
<EditText
android:id="@+id/txtPasswordLogin"
android:layout_width="300dp"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_marginTop="154dp"
android:ems="10"
android:hint="@string/password"
android:inputType="textPassword"
android:textColor="@android:color/black"
android:textSize="14sp"
android:typeface="sans"
android:visibility="visible" />
<Button
android:id="@+id/loginBtn"
android:layout_width="300dp"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:background="@android:color/holo_green_light"
android:text="LOGIN NOW"
android:textColor="@android:color/white" />
<TextView
android:id="@+id/txtDontHaveAccount"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_marginBottom="170dp"
android:autoLink="web"
android:text="Don't have an account?" />
<TextView
android:id="@+id/txtSignUpNow"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/txtDontHaveAccount"
android:layout_centerHorizontal="true"
android:layout_marginTop="-170dp"
android:onClick="switchToSignUp"
android:text="Sign up now!"
android:textColor="@android:color/holo_blue_light" />
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment