我正在使用Facebook登录我的应用程序,我想更改facebook登录按钮的默认文本。我可以这样做吗,
<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" />
谢谢。
答案 0 :(得分:4)
添加到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>
答案 1 :(得分:4)
使用Facebook名称空间
{{1}}