we introduce sign_up layout xml file for
xml file sign_up
<?xml version="1.0"
encoding="utf-8"?>
<android.widget.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"
tools:context="com.example.store.n01.Sign_up"> <ScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fillViewport="true"
android:scrollbars="vertical"> <LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"> <EditText
android:id="@+id/edit_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:ems="10"
android:inputType="textPersonName"
android:hint="Name" /> <EditText
android:id="@+id/edt_mobileno"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignEnd="@+id/edit_name"
android:layout_alignRight="@+id/edit_name"
android:layout_below="@+id/editText4"
android:ems="10"
android:inputType="textPersonName"
android:hint="@string/mobile_no" /> <EditText
android:id="@+id/edt_passwardsu"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignEnd="@+id/editText5"
android:layout_alignRight="@+id/editText5"
android:layout_below="@+id/editText5"
android:ems="10"
android:hint="@string/passward"
android:inputType="textPersonName" /> <EditText
android:id="@+id/edt_mothername"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignEnd="@+id/editText7"
android:layout_alignRight="@+id/editText7"
android:layout_below="@+id/editText7"
android:ems="10"
android:hint="@string/mother_name"
android:inputType="textPersonName" /> <CheckBox
android:id="@+id/checkBox"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/term_and_condition" /> <Button
android:id="@+id/btn_signup"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:background="@drawable/btn_all"
android:text="@string/sign_up"
android:textAlignment="center"
android:textSize="19sp"
android:padding="10dp"
android:gravity="center"/> </LinearLayout> </ScrollView> </android.widget.RelativeLayout>
PREVIEW OF XML FILE:-
No comments:
Post a Comment