如何在facebook sdk 4.7.0 android中更改facebook按钮的文本
我正在使用facebook登录我的应用程序,我想更改facebook登录按钮的默认文本。我如何才能做到这一点如何在facebook sdk 4.7.0 android中更改facebook按钮的文本,android,facebook,facebook-graph-api,android-studio,facebook-sdk-4.0,Android,Facebook,Facebook Graph Api,Android Studio,Facebook Sdk 4.0,我正在使用facebook登录我的应用程序,我想更改facebook登录按钮的默认文本。我如何才能做到这一点 <com.facebook.login.widget.LoginButton android:id="@+id/authButton" android:text="facebbok" android:layout_width="match_parent" android:layout_height="wrap_c
<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:
<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>
自定义注销
自定义日志
自定义登录
使用Facebook名称空间
<com.facebook.login.widget.LoginButton
android:id="@+id/signup_signupFacebookButton"
android:layout_width="fill_parent"
xmlns:facebook="http://schemas.android.com/apk/res-auto"
facebook:com_facebook_login_text="Sign up with Facebook"
</com.facebook.login.widget.LoginButton>