Skip to content

Instantly share code, notes, and snippets.

@buildbro
Created February 1, 2019 00:22
Show Gist options
  • Save buildbro/c729e4c19f4b655df81fd918e7a5f7d9 to your computer and use it in GitHub Desktop.
Save buildbro/c729e4c19f4b655df81fd918e7a5f7d9 to your computer and use it in GitHub Desktop.
Simple email/password registration layout for android
<?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"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center_vertical"
android:orientation="vertical"
android:padding="16dp"
tools:context=".RegistrationActivity">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Register new account" />
<EditText
android:id="@+id/email"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Email" />
<EditText
android:id="@+id/password"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Password"
android:inputType="textPassword" />
<Button
android:id="@+id/register"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Register" />
<ProgressBar
android:id="@+id/progressBar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:visibility="gone" />
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment