本文介绍了如何改变Facebook的按钮文本的Facebook SDK 4.7.0的Android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用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>
这篇关于如何改变Facebook的按钮文本的Facebook SDK 4.7.0的Android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!