I am trying to change the text on the facebook login button on Android.
I went through several stackoverflow answers, but none of them worked. Is there any way to change it?
I tried the answers in these links: 1 , 2 , 3 .
If I use the com.facebook.login.widget.LoginButton button, I cannot change the text on the button. (I can come in though)
<com.facebook.login.widget.LoginButton android:id="@+id/fragment_login_fb_login_button" android:layout_width="@dimen/fragment_login_fb_button_width" android:layout_height="@dimen/fragment_login_fb_button_height" android:layout_gravity="center" android:layout_marginTop="@dimen/fragment_login_fb_button_top_margin" android:background="@drawable/fragment_login_fb_login_button_background" android:drawableLeft="@drawable/facebook_icon" android:gravity="center" android:text="@string/label_fragment_login_sign_in_with_facebook" android:textColor="@android:color/white" android:textStyle="bold"/>
If I use Button , I was able to change the text, but I can not log in.
<Button android:id="@+id/fragment_login_fb_login_button" android:layout_width="@dimen/fragment_login_fb_button_width" android:layout_height="@dimen/fragment_login_fb_button_height" android:layout_gravity="center" android:layout_marginTop="@dimen/fragment_login_fb_button_top_margin" android:background="@drawable/fragment_login_fb_login_button_background" android:drawableLeft="@drawable/facebook_icon" android:gravity="center" android:text="@string/label_fragment_login_sign_in_with_facebook" android:textColor="@android:color/white" android:textStyle="bold"/>
I am using android facebook sdk version 4.5.0
source share