app/src/main/res/layout/activity_login.xml
<?xml version="1.0" encoding="utf-8"?>
<com.androidstudy.andelatrackchallenge.view.ScrimInsetsFrameLayout 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="@drawable/bg"
android:fitsSystemWindows="true"
android:padding="16dp"
tools:context="com.androidstudy.andelatrackchallenge.LoginActivity">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:orientation="vertical"
tools:ignore="UseCompoundDrawables">
<ImageView
android:layout_width="150dp"
android:layout_height="150dp"
android:layout_gravity="center"
android:layout_marginBottom="16dp"
android:contentDescription="@null"
android:src="@drawable/ic_logo_banner" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:fontFamily="@font/fontdiner_swanky"
android:text="@string/app_name"
android:textAlignment="center"
android:textAppearance="?android:textAppearanceLarge"
android:textColor="@color/white"
android:textStyle="bold" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_gravity="bottom"
android:orientation="horizontal"
android:weightSum="1">
<com.facebook.login.widget.LoginButton
android:id="@+id/mFacebookLogin"
android:layout_width="0dp"
android:layout_height="50dp"
android:layout_marginEnd="10dp"
android:layout_marginRight="10dp"
android:layout_marginTop="5dp"
android:layout_weight="0.5"
android:paddingBottom="10dp"
android:paddingTop="15dp" />
<com.google.android.gms.common.SignInButton
android:id="@+id/mGoogleLogin"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="0.5"
app:buttonSize="standard" />
</LinearLayout>
</com.androidstudy.andelatrackchallenge.view.ScrimInsetsFrameLayout>