我正在尝试在我的应用程序上添加“使用 Google 登录”功能。我正在使用以下代码添加谷歌登录按钮
<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>
Run Code Online (Sandbox Code Playgroud)
这是渲染一个矩形按钮。但我想要圆角按钮。有什么办法可以自定义这个圆角按钮吗?
PS - 我不想自定义普通按钮。我正在专门寻找 Google SignInButton。如果您仅了解这一点,请回复。
我有一个 GCP 项目,只是出于测试目的,我想授予“allUsers”权限。但是当我尝试添加时,我收到错误Members of type allUsers and allAuthenticatedUsers cannot be added to this resource。有人可以帮助我理解我在这里做错或错过了什么吗?谢谢
permissions roles google-authentication service-accounts google-cloud-platform