Facebook Sdk for Android不能使用从XML传递的login_text和logout_text值。它会忽略它们。目前没有任何文档/示例使用此按钮的自定义功能。
<com.facebook.widget.LoginButton
xmlns:fb="http://schemas.android.com/apk/res-auto"
android:id="@+id/connectWithFbButton"
style="@style/com_facebook_loginview_default_style"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:layout_gravity="center_horizontal"
android:text="@string/connect_with_facebook"
fb:login_text="@string/connect_with_facebook"
fb:logout_text="Connecting with facebook" />
它总是显示“登录”或“退出”。我该如何使用这个属性?我尝试通过LoginButton代码进行调试,但无济于事。它从未经过LoginButton()的任何构造函数,因此无法解析我的自定义参数。
有人遇到过这个问题吗?