Skip to content

Instantly share code, notes, and snippets.

@zzSandyzz
Created June 10, 2018 17:26
Show Gist options
  • Save zzSandyzz/51383d107623e457c4adf7c436b64f3a to your computer and use it in GitHub Desktop.
Save zzSandyzz/51383d107623e457c4adf7c436b64f3a to your computer and use it in GitHub Desktop.
registration xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.design.widget.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textColorHint="@color/white"
>
<AutoCompleteTextView
android:id="@+id/register_username"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="25sp"
android:hint="@string/prompt_username"
android:textColor="@color/white"
android:textColorHint="@color/white"
android:inputType="textNoSuggestions"
android:imeOptions="actionNext"
android:maxLines="1"
android:textIsSelectable="false"
android:textStyle="bold"/>
</android.support.design.widget.TextInputLayout>
<android.support.design.widget.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textColorHint="@color/white"
>
<AutoCompleteTextView
android:id="@+id/register_email"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/prompt_email"
android:textColor="@color/white"
android:textSize="25sp"
android:imeOptions="actionNext"
android:textColorHint="@color/white"
android:inputType="textEmailAddress"
android:maxLines="1"
android:textIsSelectable="false"
android:textStyle="bold"/>
</android.support.design.widget.TextInputLayout>
<android.support.design.widget.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textColorHint="@color/white"
>
<EditText
android:id="@+id/register_password"
android:textSize="25sp"
android:textColor="@color/white"
android:textColorHint="@color/white"
android:layout_width="match_parent"
android:imeOptions="actionNext"
android:layout_height="wrap_content"
android:hint="@string/prompt_password"
android:inputType="textPassword"
android:maxLines="1"
android:textStyle="bold"/>
</android.support.design.widget.TextInputLayout>
<android.support.design.widget.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textColorHint="@color/white"
>
<EditText
android:id="@+id/register_confirm_password"
android:textColor="@color/white"
android:textSize="25sp"
android:textColorHint="@color/white"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/prompt_password_again"
android:imeActionId="@integer/register_form_finished"
android:imeActionLabel="@string/action_sign_up"
android:imeOptions="actionUnspecified"
android:inputType="textPassword"
android:maxLines="1"
android:textStyle="bold"/>
</android.support.design.widget.TextInputLayout>
<Button
android:id="@+id/register_sign_up_button"
style="?android:textAppearanceMedium"
android:background="@android:color/background_light"
android:textColor="@android:color/holo_green_light"
android:onClick="signUp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:text="SIGN UP"
android:textStyle="bold"/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment