Last active
November 24, 2022 18:35
-
-
Save ikhlaqmalik13/036290080643d91c1bd8bba11774d283 to your computer and use it in GitHub Desktop.
Login Screen Design
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<shape xmlns:android="http://schemas.android.com/apk/res/android"> | |
<corners android:radius="22dp" /> | |
<solid android:color="#0096ff" /> | |
</shape> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<shape xmlns:android="http://schemas.android.com/apk/res/android"> | |
<gradient | |
android:angle="90" | |
android:endColor="@color/teal_200" | |
android:centerColor="@color/purple_500" | |
android:startColor="@color/purple_200" /> | |
</shape> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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:background="@drawable/bg_gradient" | |
android:orientation="vertical" | |
android:paddingHorizontal="40dp"> | |
<TextView | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_marginTop="100dp" | |
android:text="DIGITM" | |
android:textAlignment="center" | |
android:textColor="@color/white" | |
android:textSize="65sp" /> | |
<EditText | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_marginTop="50dp" | |
android:layout_marginBottom="6dp" | |
android:drawableStart="@drawable/ic_baseline_email_24" | |
android:drawableTint="#95FFFFFF" | |
android:hint="Email" | |
android:inputType="textEmailAddress" | |
android:textAlignment="center" | |
android:textColorHint="#95FFFFFF" /> | |
<EditText | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_marginVertical="6dp" | |
android:drawableStart="@drawable/ic_baseline_password_24" | |
android:drawableTint="#95FFFFFF" | |
android:hint="Password" | |
android:inputType="textPassword" | |
android:textAlignment="center" | |
android:textColorHint="#95FFFFFF" /> | |
<Button | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_marginVertical="6dp" | |
android:background="@drawable/bg_rounded_rect" | |
android:text="Secure Login" | |
android:textAllCaps="false" | |
android:textColor="@color/white" /> | |
<LinearLayout | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_marginVertical="22dp" | |
android:gravity="center_horizontal" | |
android:orientation="horizontal"> | |
<TextView | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:text="Don't have an account?" | |
android:textAlignment="center" | |
android:textColor="@color/white" | |
android:textSize="14sp" /> | |
<TextView | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:text=" Sign Up Now!" | |
android:textAlignment="center" | |
android:textColor="#9FCCEC" | |
android:textSize="14sp" /> | |
</LinearLayout> | |
<LinearLayout | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:gravity="center_vertical|center_horizontal" | |
android:orientation="horizontal"> | |
<View | |
android:layout_width="120dp" | |
android:layout_height="2dp" | |
android:background="#fff" /> | |
<TextView | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_marginHorizontal="4dp" | |
android:text="OR" | |
android:textAlignment="center" | |
android:textColor="#FFF" | |
android:textSize="14sp" /> | |
<View | |
android:layout_width="120dp" | |
android:layout_height="2dp" | |
android:background="#fff" /> | |
</LinearLayout> | |
<TextView | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_gravity="center_horizontal" | |
android:layout_marginHorizontal="4dp" | |
android:layout_marginVertical="12dp" | |
android:text="Sign Up with Social Networks" | |
android:textAlignment="center" | |
android:textColor="#FFF" | |
android:textSize="14sp" /> | |
<LinearLayout | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_marginTop="14dp" | |
android:orientation="horizontal" | |
android:weightSum="2"> | |
<LinearLayout | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_marginEnd="4dp" | |
android:layout_weight="1" | |
android:background="@drawable/bg_rounded_rect" | |
android:backgroundTint="#3a559f" | |
android:gravity="center_horizontal|center_vertical" | |
android:orientation="horizontal"> | |
<ImageView | |
android:layout_width="30dp" | |
android:layout_height="30dp" | |
android:background="@color/white" | |
android:src="@drawable/fb" /> | |
<TextView | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_gravity="center_horizontal|center_vertical" | |
android:layout_marginHorizontal="4dp" | |
android:layout_marginVertical="12dp" | |
android:text="Facebook" | |
android:textAlignment="center" | |
android:textColor="#FFF" | |
android:textSize="14sp" /> | |
</LinearLayout> | |
<LinearLayout | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_marginStart="4dp" | |
android:layout_weight="1" | |
android:background="@drawable/bg_rounded_rect" | |
android:backgroundTint="#C8E82F19" | |
android:gravity="center_horizontal|center_vertical" | |
android:orientation="horizontal"> | |
<ImageView | |
android:layout_width="30dp" | |
android:layout_height="30dp" | |
android:src="@drawable/google" /> | |
<TextView | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_gravity="center_horizontal|center_vertical" | |
android:layout_marginHorizontal="4dp" | |
android:layout_marginVertical="12dp" | |
android:text="Google" | |
android:textAlignment="center" | |
android:textColor="#FFF" | |
android:textSize="14sp" /> | |
</LinearLayout> | |
</LinearLayout> | |
</LinearLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment