是否可以将Facebook登录按钮加载到首选项活动中?
如何设置首选项布局?
参考developers.facebook.com
将按钮添加到具有完整类名com.facebook.widget.LoginButton:的布局XML文件中
<com.facebook.login.widget.LoginButton
android:id="@+id/login_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginTop="30dp"
android:layout_marginBottom="30dp" />