Advance Sign Up Interface in Android Studio Using XML Activity Code

 


Advanced Sign Up Interface in Android Studio

 1) Create a Resource File

Right Click on Drawable Folder > New > Drawable Resource File



2) Name and Selector Type of Drawable Resource File



Now Paste the Below Code in Drawable Resource File  ( Replace Complete Code )



  
  
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#607D8A"/>
    <corners android:radius="30dp">
</corners>  </shape>

3) Now Paste main_activity.xml Code




  
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    android:background="@drawable/app_interface_1"
    >
<TextView
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:text="Sign Up"
    android:textColor="@color/white"
    android:textSize="55dp"
    android:layout_marginTop="10dp"
    android:gravity="center"
    android:textStyle="bold"
    />

<LinearLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="vertical">
    <TextView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="WHO ARE YOU ?"
        android:textColor="#F5A545"
        android:textSize="35dp"
        android:layout_marginTop="10dp"
        android:gravity="center"
        android:textStyle="bold"
        />
<LinearLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="horizontal"
    android:gravity="center"
    >

    <LinearLayout
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:orientation="vertical"
        android:gravity="center"
        >
<ImageView
    android:layout_width="100dp"
    android:layout_height="100dp"
    android:src="@drawable/female_icon"
    />
<TextView
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="Parent"
    android:textColor="@color/white"
    android:textSize="25dp"
    />
    </LinearLayout>
    <LinearLayout
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:orientation="vertical"
        android:gravity="center"
        android:layout_marginLeft="20dp"
        >
        <ImageView
            android:layout_width="90dp"
            android:layout_height="100dp"
            android:src="@drawable/child_icon"
            />
        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="Child"
            android:textColor="@color/black"
            android:textSize="25dp"
            />
    </LinearLayout>

    <LinearLayout
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:orientation="vertical"
        android:gravity="center"
    android:layout_marginLeft="20dp"
        >
        <ImageView
            android:layout_width="100dp"
            android:layout_height="100dp"
            android:src="@drawable/male_icon"
            />
        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="Male"
            android:textColor="@color/white"
            android:textSize="25dp"
            />
    </LinearLayout>

</LinearLayout>
</LinearLayout>

<LinearLayout
    android:layout_width="360dp"
    android:layout_height="60dp"
android:orientation="horizontal"
    android:background="@drawable/borders_only"
    android:layout_gravity="center"
    android:layout_marginTop="10dp"
    android:padding="6dp"
    >
    <ImageView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
android:src="@drawable/dot"
        android:layout_marginTop="7dp"
        />
    <EditText
        android:layout_width="300dp"
        android:layout_height="50dp"
android:hint="Username"
        android:background="#607D8A"
        />

</LinearLayout>
    <LinearLayout
        android:layout_width="360dp"
        android:layout_height="60dp"
        android:orientation="horizontal"
        android:background="@drawable/borders_only"
        android:layout_gravity="center"
        android:layout_marginTop="10dp"
        android:padding="6dp"
        >
        <ImageView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:src="@drawable/dot"
            android:layout_marginTop="7dp"
            />
        <EditText
            android:layout_width="300dp"
            android:layout_height="50dp"
            android:hint="Email"
            android:background="#607D8A"
            />

    </LinearLayout>

    <LinearLayout
        android:layout_width="360dp"
        android:layout_height="60dp"
        android:orientation="horizontal"
        android:background="@drawable/borders_only"
        android:layout_gravity="center"
        android:layout_marginTop="10dp"
        android:padding="6dp"
        >
        <ImageView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:src="@drawable/dot"
            android:layout_marginTop="7dp"
            />
        <EditText
            android:layout_width="300dp"
            android:layout_height="50dp"
            android:hint="Password"
            android:background="#607D8A"
            />
    </LinearLayout>
    <LinearLayout
        android:layout_width="360dp"
        android:layout_height="60dp"
        android:orientation="horizontal"
        android:background="@drawable/borders_only"
        android:layout_gravity="center"
        android:layout_marginTop="10dp"
        android:padding="6dp"
        >
        <ImageView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:src="@drawable/dot"
            android:layout_marginTop="7dp"
            />
        <EditText
            android:layout_width="300dp"
            android:layout_height="50dp"
            android:hint="Confirm Password"
            android:background="#607D8A"
            />

    </LinearLayout>

<Button
    android:layout_width="360dp"
    android:layout_height="60dp"
    android:text="SIGN UP"
    android:textStyle="bold"
    android:textSize="25dp"
    android:layout_marginTop="5dp"
    android:backgroundTint="@color/black"
    android:layout_gravity="center"

    />
    <LinearLayout
        android:layout_width="wrap_content"
        android:layout_height="60dp"
        android:orientation="horizontal"
        android:layout_gravity="center"
        android:layout_marginTop="10dp"
        android:padding="6dp"
        >

<TextView
    android:layout_width="wrap_content"
    android:layout_height="50dp"
    android:text="Already have an account."
    android:textColor="@color/white"
    android:textSize="20dp"
    android:textStyle="bold"

    />
    <TextView
        android:layout_width="wrap_content"
        android:layout_height="50dp"
        android:text="Login here"
        android:textColor="@color/black"
        android:textSize="20dp"
        android:textStyle="bold"

        />


    </LinearLayout>


</LinearLayout>






Now Design Ready: Replace Icon with Yours. Simply Change or Remove android:background="@drawable/your_icon"

Post a Comment

If You Have Any Doubts, Please Let Me Know and Share Your Opinion.

Previous Post Next Post