I would like to use com.google.android.gms.common.SignInButtonin one of my layouts, but, unfortunately, and without any important reason, the text inside the button does not want to be in the center.
Here's what it looks like:

xml is really simple, and I tried playing with field / padding / gravity / ... but nothing works to center the text:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<include layout="@layout/toolbar" />
<com.google.android.gms.common.SignInButton
android:id="@+id/button_google_sign_in"
android:layout_width="200dp"
android:layout_height="60dp"
android:layout_centerInParent="true" />
</RelativeLayout>
EDIT:
Even with completely empty activity, this button does not display correctly ... Am I crazy?

Has anyone already encountered this problem?
thank
source
share