Vote count: 0
I'd like to use a com.google.android.gms.common.SignInButton in one of my layouts but sadly, and without any valuable reason, the text inside the button doesn't want to be in the center.
Here is how it look :
The xml is really simple and I try to play with the margin/padding/gravity/... but nothing works to center the text:
<RelativeLayout xmlns:android="http://ift.tt/nIICcg"
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>
Has somebody already encounter this problem?
Thank you
asked 38 secs ago
Android - Google SignInButton text is not centered
Aucun commentaire:
Enregistrer un commentaire