Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
170 changes: 170 additions & 0 deletions activity_main.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,170 @@
<?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:orientation="vertical"

tools:context=".MainActivity">

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginTop="15dp"

android:fontFamily="@font/artifika"
android:gravity="center"

android:text="Welcome \n to \n BloodBank"
android:textColor="#E60A0A"
android:textSize="56sp" />


<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">


<View
android:id="@+id/view4"
android:layout_width="wrap_content"
android:layout_height="2dp"
android:layout_gravity="center"
android:layout_margin="15dp"
android:background="@color/startcolorgradient"
android:elevation="5dp" />

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="16dp"
android:gravity="center"
android:orientation="horizontal">

<TextView
android:id="@+id/tvemail"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="Username"
android:textColor="@color/black"
android:textSize="24sp"
android:textStyle="bold" />

<EditText
android:id="@+id/etemail"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@drawable/edittext_background"
android:ems="10"
android:hint="Usernsme"
android:inputType="textPersonName"
android:padding="9dp" />

</LinearLayout>

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="16dp"
android:gravity="center"
android:orientation="horizontal">

<TextView
android:id="@+id/textView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="Password"
android:textColor="@color/black"
android:textSize="24sp"
android:textStyle="bold" />

<EditText
android:id="@+id/etpassword"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@drawable/edittext_background"
android:ems="10"
android:hint="Password"
android:inputType="textPassword"
android:padding="9dp" />

</LinearLayout>

<Button
android:id="@+id/btnLogin"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_margin="16dp"
android:background="@drawable/btn_background"
android:gravity="center"
android:text="Sign In"
android:textSize="20sp" />

<TextView
android:id="@+id/DontHaveAccount"
android:layout_width="match_parent"
android:layout_height="wrap_content"

android:layout_marginEnd="15dp"
android:gravity="right"
android:text="Don't have account"
android:textColor="@color/black" />

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="15dp"
android:gravity="center"
android:orientation="horizontal">

<Button
android:id="@+id/google_btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="15dp"
android:layout_marginEnd="15dp"
android:background="@drawable/googgle_background"
android:drawableLeft="@drawable/ic_google"
android:gravity="center"
android:text="Google"
android:textSize="19sp" />

<Button
android:id="@+id/button5"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="15dp"
android:layout_marginEnd="15dp"
android:background="@drawable/googgle_background"
android:backgroundTint="#0F81DC"
android:drawableLeft="@drawable/ic_facebook"
android:gravity="center"
android:text="Facebook"
android:textSize="15sp" />
</LinearLayout>
<View

android:layout_width="wrap_content"
android:layout_height="2dp"
android:layout_gravity="center"
android:layout_margin="15dp"
android:background="@color/startcolorgradient"
android:elevation="5dp" />
</LinearLayout>

</ScrollView>


</LinearLayout>