android - 如何更改 facebook android sdk 登录按钮的样式?

标签 android facebook authentication

<com.facebook.widget.LoginButton
    android:id="@+id/authButton"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_gravity="center_horizontal"
    android:layout_marginTop="30dp"
    />

我想用其他图片更改登录按钮样式,如何操作?

非常感谢!

最佳答案

Fb sdk已设置按钮背景为

           this.setBackgroundResource(R.drawable.com_facebook_loginbutton_blue);

你应该更改fb sdk中的图像,

将drawable(com_facebook_loginbutton_blue)替换为您在fb sdk中的drawable

关于android - 如何更改 facebook android sdk 登录按钮的样式?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17101830/

相关文章:

android - 有人知道如何更改 "Run"控制台窗口的字体吗?

android - 在绘图中使用 "dp"和 "sp"

android - 回收站 View android 中的 Facebook 原生广告

java - 我的第一次登录尝试没有给我任何消息

Laravel - 如何添加全局信息,如\Auth::user()

authentication - 将客户的钱直接转给第三方(Paypal Payments Pro)

android - fragment 变得可见

android - 使用 RecyclerView 时出错 : The specified child already has a parent

php - Facebook 图形 API 和使用新图形 SDK (PHP) 的删除后回调

php - 从 sql 名称打印所有 iframe 按钮