Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Sprajapati123/72c13f62cc66489aaefbe39f4d25e06e to your computer and use it in GitHub Desktop.
Save Sprajapati123/72c13f62cc66489aaefbe39f4d25e06e to your computer and use it in GitHub Desktop.
activity_register.xml
<?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:orientation="vertical"
android:id="@+id/main"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".ui.activity.RegisterActivity">
<EditText
android:id="@+id/registerFname"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ems="10"
android:inputType="text"
android:hint="Enter first name" />
<EditText
android:id="@+id/registerLName"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ems="10"
android:inputType="text"
android:hint="Enter last name" />
<EditText
android:id="@+id/registerAddress"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ems="10"
android:inputType="text"
android:hint="Enter address" />
<EditText
android:id="@+id/registerContact"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ems="10"
android:inputType="phone"
android:hint="Enter phone number" />
<EditText
android:id="@+id/registerEmail"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ems="10"
android:inputType="textEmailAddress"
android:hint="Enter email" />
<EditText
android:id="@+id/registerPassword"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ems="10"
android:inputType="textPassword"
android:hint="Enter password" />
<Button
android:id="@+id/signUp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Sign up" />
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment