如何改变Facebook的按钮文本的Facebook SDK 4.7.0的Andr​​oid

问题描述:

我使用Facebook在我的应用程序登录,我想改变Facebook登录button.how的默认的文字我能做到这一点,

I am using facebook to login in my app and i want to change default text of facebook login button.how can i do that,

   <com.facebook.login.widget.LoginButton
        android:id="@+id/authButton"
        android:text="facebbok"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginLeft="4dp"
        android:layout_marginRight="4dp"
        android:paddingBottom="12dp"
        android:paddingTop="12dp" />

感谢您。

添加到您的strings.xml:

Add to your strings.xml:

<string name="com_facebook_loginview_log_out_button">Custom Log out</string>
<string name="com_facebook_loginview_log_in_button">Custom Log</string>
<string name="com_facebook_loginview_log_in_button_long">Custom Log in</string>