Skip to content

Instantly share code, notes, and snippets.

@mozerian
Created June 22, 2020 20:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mozerian/7d4d0cf2e32e802ae23cc6de2bc0456a to your computer and use it in GitHub Desktop.
Save mozerian/7d4d0cf2e32e802ae23cc6de2bc0456a to your computer and use it in GitHub Desktop.
<?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