我想在我的佈局之一,但可悲的是使用com.google.android.gms.common.SignInButton
,沒有任何有價值的理由,按鈕內的文本並不想在中心。Android的 - 谷歌SignInButton文本不居中
這裏是如何看:
的XML是非常簡單的,我試着用保證金/填充/重力播放/ ......但沒有任何工程居中文字:
<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>
編輯:
即使是一個完全空白的活動,此按鈕顯示不正確......我瘋了?
有人偷已經遇到這個問題?
謝謝
什麼是你的谷歌播放服務的版本? –
請發佈'工具欄'佈局。我使用了Google SignIn按鈕,它對我來說非常合適。所以想要檢查'工具欄'佈局是否搞亂了某些東西 – Dibzmania
@ A.Badakhshan'com.google.android.gms:play-services-auth:10.0.1' – Valentin