In this blog, I am discussing how to customize a Facebook login button on Android. Android is the most popular mobile operating system worldwide and Facebook is also the number one social networking site world over.
Before I tell you how to customize a Facebook login button on Android, I hope that you have already added Facebook and Fancybuttons librarires.
Let’s create our new Facebook button then :
<mehdi.sakout.fancybuttons.FancyButton
android:id="@+id/facebook_login"
android:layout_width="wrap_content"
android:layout_height="45dp"
android:paddingLeft="10dp"
android:paddingRight="10dp"
app:fb_radius="2dp"
app:fb_iconPosition="left"
app:fb_fontIconSize="20sp"
app:fb_iconPaddingRight="10dp"
app:fb_textSize="16sp"
app:fb_text="Facebook Connect"
app:fb_textColor="#ffffff"
app:fb_defaultColor="#39579B"
app:fb_focusColor="#6183d2"
app:fb_fontIconResource=""
android:layout_centerVertical="true"
android:layout_centerHorizontal="true" />
Once you write the above code, you will get something like this:
Source: medyo
Hope you enjoyed reading this blog, If you have any query related to this blog or any other tech query, please feel free to ask on the same tech forum: Android Developer Forum
0 Comment(s)