Skip to content

Instantly share code, notes, and snippets.

@alorma
Last active February 4, 2016 16:21
Show Gist options
  • Save alorma/97c9f75554498ed00eca to your computer and use it in GitHub Desktop.
Save alorma/97c9f75554498ed00eca to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
android:color="@color/blue_facebook_dark">
<item>
<shape android:shape="rectangle" >
<corners android:radius="10dp"/>
<solid android:color="@color/blue_facebook"/>
</shape>
</item>
</ripple>
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<corners android:radius="10dp" />
<solid android:color="@color/blue_facebook_dark" />
</shape>
<resources>
<color name="blue_facebook">#3B5898</color>
<color name="blue_facebook_dark">#314B86</color>
</resources>
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/facebook_login_button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/button_login_facebook"
android:gravity="center">
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:drawableLeft="@drawable/fb_f_icon"
android:drawableStart="@drawable/fb_f_icon"
android:text="@string/facebook_login_text"
android:drawablePadding="@dimen/content_margin_8"
android:background="@null"
android:clickable="false"
android:textColor="@color/white" />
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment