Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?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">
<com.google.android.material.appbar.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="@style/AppTheme.AppBarOverlay">
<androidx.appcompat.widget.Toolbar
android:id="@+id/main_toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="?attr/colorPrimary"
app:popupTheme="@style/AppTheme.PopupOverlay" />
</com.google.android.material.appbar.AppBarLayout>
<com.google.android.material.card.MaterialCardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="20dp"
android:layout_marginTop="50dp"
android:background="@drawable/button"
android:layout_centerInParent="true"
app:cardElevation="5dp"
app:cardCornerRadius="8dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_marginLeft="5dp"
android:layout_marginTop="20dp"
>
<TextView
android:id="@+id/title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_marginStart="24dp"
android:layout_marginLeft="8dp"
android:text="Two Step Authentication"
android:textAlignment="center"
android:textColor="@color/colorRed"
android:textSize="24sp"
android:textStyle="bold" />
<View
android:layout_width="match_parent"
android:layout_height="2dp"
android:layout_below="@id/logo"
android:layout_marginLeft="8dp"
android:layout_marginRight="24dp"
android:layout_marginTop="-20dp"
android:background="@color/colorPrimaryDark"
android:layout_marginStart="8dp"
android:layout_marginEnd="24dp" />
<de.hdodenhof.circleimageview.CircleImageView
android:id="@+id/logo"
android:elevation="5dp"
android:layout_width="100dp"
android:layout_height="100dp"
android:layout_centerVertical="true"
android:layout_gravity="center"
android:layout_marginLeft="20dp"
android:layout_marginTop="60dp"
android:layout_toEndOf="@+id/title"
android:layout_toRightOf="@+id/title"
android:src="@mipmap/ic_launcher" />
</RelativeLayout>
<TextView
android:id="@+id/welcome"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Thank you for Completing the two step authentication with Firebase, Happy Coding"
android:textColor="@color/deepBlue"
android:textAlignment="center"
android:layout_gravity="center"
android:textSize="20sp"
android:layout_margin="20dp"
android:textStyle="italic"/>
</LinearLayout>
</com.google.android.material.card.MaterialCardView>
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment