如何更改“使用Facebook登录”按钮的高度? [英] How to change the height of the 'Log in with Facebook' button?

查看:237
本文介绍了如何更改“使用Facebook登录”按钮的高度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经尝试了几个答案,但是没有人能使用最新的Android SDK 4.0版。

I already tried several answers I could find but none of them worked with the latest Facebook Android SDK version 4.0.

如何使用最新版本更改布局高度SDK?

How can I change the layout height with the latest SDK?

推荐答案

只需设置paddingTop和paddingBottom。它适用于我。

Just set paddingTop and paddingBottom. It works for me.

<com.facebook.login.widget.LoginButton
        android:id="@+id/login_facebook_button"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:paddingTop="15dp"
        android:paddingBottom="15dp"
        android:layout_marginRight="30dp"
        android:layout_marginLeft="30dp"/>

这篇关于如何更改“使用Facebook登录”按钮的高度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆