答案 0 :(得分:1)
正如在其他post上回答的那样,您可以通过添加&来完成XML。使用app
命名空间(因为它们是自定义属性):
<com.google.android.gms.common.SignInButton
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/sign_in_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:buttonSize="wide"
app:colorScheme="dark"
/>
可能的属性值包括:
"wide", "icon_only" or "standard"
(默认)"dark", "light" & "auto"
(默认)答案 1 :(得分:0)