Facebook SDK 4(Android)的自定义按钮

Facebook SDK 4(Android)的自定义按钮,android,facebook,button,styling,Android,Facebook,Button,Styling,我正在尝试自定义Facebook SDK 4.0(Android)中的登录按钮,但没有办法。。。我在看Fb文档,但没有结果。有什么想法吗 提前谢谢 你的按钮 <com.facebook.widget.LoginButton xmlns:fb="http://schemas.android.com/apk/res-auto" android:id="@+id/login_button" android:layout_width="249dp" android:

我正在尝试自定义Facebook SDK 4.0(Android)中的登录按钮,但没有办法。。。我在看Fb文档,但没有结果。有什么想法吗

提前谢谢

你的按钮

<com.facebook.widget.LoginButton
    xmlns:fb="http://schemas.android.com/apk/res-auto"
    android:id="@+id/login_button"
    android:layout_width="249dp"
    android:layout_height="45dp"
    android:layout_above="@+id/textView1"
    android:layout_centerHorizontal="true"
    android:layout_gravity="center_horizontal"
    android:layout_marginBottom="30dp"
    android:layout_marginTop="30dp"
    android:contentDescription="@string/login_desc"
    android:scaleType="centerInside"
    fb:login_text=""
    fb:logout_text="" />
你的钮扣

<com.facebook.widget.LoginButton
    xmlns:fb="http://schemas.android.com/apk/res-auto"
    android:id="@+id/login_button"
    android:layout_width="249dp"
    android:layout_height="45dp"
    android:layout_above="@+id/textView1"
    android:layout_centerHorizontal="true"
    android:layout_gravity="center_horizontal"
    android:layout_marginBottom="30dp"
    android:layout_marginTop="30dp"
    android:contentDescription="@string/login_desc"
    android:scaleType="centerInside"
    fb:login_text=""
    fb:logout_text="" />

对于新的Facebook SDK(4+),您可以使用此代码自定义按钮文本

<com.facebook.login.widget.LoginButton
    xmlns:facebook="http://schemas.android.com/apk/res-auto"
    facebook:com_facebook_login_text="Custom Login text"
    ...
/>

对于新的Facebook SDK(4+)您可以使用此代码自定义按钮文本

<com.facebook.login.widget.LoginButton
    xmlns:facebook="http://schemas.android.com/apk/res-auto"
    facebook:com_facebook_login_text="Custom Login text"
    ...
/>


在新的API com.facebook.widget.LoginButton中似乎被com.facebook.login.widget.LoginButton替换在新的API com.facebook.widget.LoginButton中似乎被com.facebook.login.widget.LoginButton替换