Skip to content

Instantly share code, notes, and snippets.

@devxbs
Last active June 24, 2018 09:14
Show Gist options
  • Save devxbs/13cbf69f6e9e3fcf6527733cad9e5ee7 to your computer and use it in GitHub Desktop.
Save devxbs/13cbf69f6e9e3fcf6527733cad9e5ee7 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: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/bg"
tools:context=".SignUpActivity">
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
android:background="@drawable/bg"
android:minHeight="?attr/actionBarSize"
android:theme="?attr/actionBarTheme"
>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Sign Up"
android:textStyle="bold"
android:textColor="#ffff"
android:textSize="20sp"
android:textAlignment="center"
/>
</android.support.v7.widget.Toolbar>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@+id/toolbar"
android:orientation="vertical"
android:layout_centerHorizontal="true">
<LinearLayout
android:layout_width="match_parent"
android:layout_marginStart="20dp"
android:layout_marginEnd="20dp"
android:layout_marginTop="20dp"
android:orientation="vertical"
android:layout_height="match_parent"
android:layout_marginBottom="20dp"
android:gravity="center"
android:background="@drawable/layout_bg">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="410dp"
android:orientation="vertical"
>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:drawableLeft="@drawable/ic_perm_identity_black_24dp"
android:layout_marginEnd="20dp"
android:id="@+id/name"
android:layout_marginStart="20dp"
android:textSize="14sp"
android:drawablePadding="10dp"
android:hint="NAME"
android:padding="20dp"
android:textColorHint="#606060"
android:inputType="textPersonName"/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:drawablePadding="10dp"
android:id="@+id/email"
android:drawableLeft="@drawable/ic_mail_outline_black_24dp"
android:layout_marginEnd="20dp"
android:layout_marginStart="20dp"
android:hint="EMAIL/MOBILE"
android:padding="20dp"
android:textSize="14sp"
android:textColorHint="#606060"
android:inputType="text"/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:drawableLeft="@drawable/ic_lock_outline_black_24dp"
android:layout_marginEnd="20dp"
android:id="@+id/password"
android:layout_marginStart="20dp"
android:textSize="14sp"
android:drawablePadding="10dp"
android:hint="PASSWORD"
android:padding="20dp"
android:textColorHint="#606060"
android:inputType="textPassword"/>
<CheckBox
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Agree to Out Terms & Conditions"
android:id="@+id/checkbox"
android:layout_marginTop="20dp"
android:layout_marginLeft="30dp" />
<ImageButton
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_gravity="end"
android:layout_marginTop="45dp"
android:layout_marginEnd="25dp"
android:id="@+id/signup"
android:src="@drawable/ic_arrow_forward_black_24dp"
android:background="@drawable/button_bg"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:gravity="center">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:text="Already have an Account"
android:textAlignment="center"
android:textColor="@android:color/black"
android:textStyle="bold" />
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginLeft="40dp"
android:layout_marginRight="40dp"
android:layout_marginTop="10dp"
android:id="@+id/signin"
android:background="@drawable/button_bg"
android:text="SIGN IN"
android:textColor="@android:color/white" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment