Skip to content

Instantly share code, notes, and snippets.

@zzSandyzz
Created June 10, 2018 17:24
Show Gist options
  • Save zzSandyzz/7bca1c29922fd3afe14aac056db1774d to your computer and use it in GitHub Desktop.
Save zzSandyzz/7bca1c29922fd3afe14aac056db1774d to your computer and use it in GitHub Desktop.
signin layout
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout 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="@drawable/footballer"
tools:context=".MainActivity">
<android.support.design.widget.TextInputLayout
android:layout_width="match_parent"
android:layout_height="18dp"
android:layout_marginBottom="8dp"
android:textColorHint="@color/white"
app:layout_constraintBottom_toTopOf="@+id/textInputLayout">
<AutoCompleteTextView
android:id="@+id/login_email"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/prompt_email"
android:imeOptions="actionNext"
android:inputType="textEmailAddress"
android:maxLines="1"
android:textColor="@color/white"
android:textColorHint="@color/white"
android:textIsSelectable="false" />
</android.support.design.widget.TextInputLayout>
<android.support.design.widget.TextInputLayout
android:id="@+id/textInputLayout"
android:layout_width="match_parent"
android:layout_height="16dp"
android:layout_marginBottom="8dp"
android:textColorHint="@color/white"
app:layout_constraintBottom_toTopOf="@+id/login_sign_in_button">
<EditText
android:id="@+id/login_password"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/prompt_password"
android:imeActionId="@integer/login"
android:imeActionLabel="@string/action_sign_in_short"
android:imeOptions="actionUnspecified"
android:inputType="textPassword"
android:maxLines="1"
android:textColor="@color/white"
android:textColorHint="@color/white" />
</android.support.design.widget.TextInputLayout>
<Button
android:id="@+id/login_sign_in_button"
style="?android:textAppearanceMedium"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:background="@android:color/holo_green_light"
android:onClick="signInExistingUser"
android:text="SIGN IN"
android:textColor="@android:color/background_light"
android:textStyle="bold"
app:layout_constraintBottom_toTopOf="@+id/login_register_button" />
<Button
android:id="@+id/login_register_button"
style="?android:textAppearanceMedium"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:background="@android:color/background_light"
android:onClick="registerNewUser"
android:text="REGISTER"
android:textColor="@android:color/holo_green_light"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="parent" />
</android.support.constraint.ConstraintLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment