Skip to content

Instantly share code, notes, and snippets.

@mikkipastel
Created October 29, 2016 16:30
Show Gist options
  • Save mikkipastel/3a78470904da13c4de45dafd23c1e9f8 to your computer and use it in GitHub Desktop.
Save mikkipastel/3a78470904da13c4de45dafd23c1e9f8 to your computer and use it in GitHub Desktop.
layout login with google and facebook
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/background">
<LinearLayout
android:layout_height="wrap_content"
android:layout_width="match_parent">
<ImageView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:src="@drawable/bg_welcome"
android:contentDescription="@string/app_name"/>
</LinearLayout>
<LinearLayout
android:layout_height="match_parent"
android:layout_width="match_parent"
android:padding="@dimen/activity_horizontal_margin"
android:layout_gravity="bottom"
android:gravity="bottom"
android:orientation="vertical">
<com.google.android.gms.common.SignInButton
android:id="@+id/google_login"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:layout_marginBottom="20dp" />
<com.facebook.login.widget.LoginButton
android:id="@+id/facebook_login"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:layout_marginBottom="20dp" />
</LinearLayout>
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment