Skip to content

Instantly share code, notes, and snippets.

@AnwarKamel
Created October 19, 2021 15:58
Show Gist options
  • Save AnwarKamel/1b56c6043a75bba7cf6a659fb2bd27dd to your computer and use it in GitHub Desktop.
Save AnwarKamel/1b56c6043a75bba7cf6a659fb2bd27dd to your computer and use it in GitHub Desktop.
Facebook Activity Login design 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:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/fb_color"
tools:context=".FacebookActivity">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center|top"
android:orientation="vertical"
android:padding="16dp">
<ImageView
android:layout_width="60dp"
android:layout_height="wrap_content"
android:layout_marginTop="100px"
android:src="@drawable/ic_facebook" />
<EditText
android:id="@+id/edt_email"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="32dp"
android:backgroundTint="@color/white"
android:hint="Email or Phone"
android:textColor="@color/white"
android:textColorHint="@color/white" />
<EditText
android:id="@+id/edt_password"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:textColor="@color/white"
android:backgroundTint="@color/white"
android:hint="Password"
android:inputType="textPassword"
android:textColorHint="@color/white" />
<Button
android:id="@+id/btn_login"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="32dp"
android:background="#85ffffff"
android:text="LOG IN"
android:textColor="#ffffff" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="32dp"
android:text="Sign Up for Facebook"
android:textColor="@color/white"
android:textSize="18sp" />
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="32dp"
>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:text="Forgot Password?"
android:textColor="@color/white"
android:textSize="18sp" />
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:src="@drawable/ic_round_error_24" />
</RelativeLayout>
</LinearLayout>
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment