我想在我的应用程序中添加'用Google登录'功能。我正在使用以下代码添加谷歌登录按钮圆角谷歌登录按钮 - android
<com.google.android.gms.common.SignInButton
android:id="@+id/btn_google_signin"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="24dp"
android:background="?attr/selectableItemBackground"
android:elevation="2dp"></com.google.android.gms.common.SignInButton>
这是渲染一个矩形按钮。但我想要圆角按钮。有什么方法可以用圆角来定制这个按钮吗?
P.S. - 我不想自定义正常按钮。我特别在寻找Google SignInButton。如果你知道这一点,请回复。
你需要有drawble背景的.. –
检查这个职位的答案 http://stackoverflow.com/questions/6054562/how-to-make-一角的按钮轮 –
这是正常的按钮,我知道这一点。非常特定的谷歌登录按钮。 –