更改谷歌登录按钮样式android
我的家庭活动上有一个facebook和一个谷歌登录按钮。我试图设置两个按钮的大小相同,但无法做到这一点 上面的链接显示了google登录按钮的默认边界。我想删除它,使两个按钮相等。这是我的代码更改谷歌登录按钮样式android,android,google-signin,Android,Google Signin,我的家庭活动上有一个facebook和一个谷歌登录按钮。我试图设置两个按钮的大小相同,但无法做到这一点 上面的链接显示了google登录按钮的默认边界。我想删除它,使两个按钮相等。这是我的代码 <com.facebook.login.widget.LoginButton android:id="@+id/fb_login_button" android:layout_width="match_parent" android:layout_h
<com.facebook.login.widget.LoginButton
android:id="@+id/fb_login_button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:paddingTop="13dp"
android:paddingBottom="13dp"
android:layout_margin="3dp"/>
<com.google.android.gms.common.SignInButton
android:id="@+id/google_login_button"
android:layout_centerInParent="true"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/fb_login_button" />
有人能帮我吗?Google+和Facebook都提供了两种登录方式。一种是使用它们提供的按钮。在这种情况下,您不需要额外的代码,因为这些自定义按钮将满足您的所有需要 另一种方法是,您必须创建自己的按钮,然后自己处理所有登录代码。对你来说,我认为这是个更好的主意 Google+登录:使用
GoogleAppClient
Facebook登录:使用
LoginManager
是否尝试为这些按钮指定背景和样式?我尝试了背景,但不起作用