An android custom facebook button.
-
Add the drawable res (found in the drawable folder) to your project. Place the following files in the drawable folder:
-
Add the logo icon res (found in the drawable (any dpi) folder) to your project. Place the following files in the drawable (any dpi) folder:
Facebook Logo
(Facebook Button
orFacebook Login Button
)Facebook Logo Silver
(Facebook Login Button Silver
)
-
Customize your button.
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/button_facebook_login"
android:text="Facebook Login Button"
android:textAllCaps="false"/>
Android GINGERBREAD 4.0.3+
Logos and Button drawables from facebook/facebook-android-sdk.