I have G + signinbutton in my code and its working fine for entry. I installed it using the code below in my xml
<com.google.android.gms.common.SignInButton
android:id="@+id/btn_sign_in"
android:layout_width="match_parent"
android:layout_height="50dp"
android:textSize="15dp"
android:layout_marginBottom="10dp"
android:layout_marginLeft="2dp"
android:layout_marginRight="2dp"
/>
What I have now, as shown below

Now I want to set the TextView to the center of the button. but SignInButton doesn't seem to android:gravity, how can I set my TextView to center?
source
share