Here is a basic Google+ Android Sign-In button in XML:
<com.google.android.gms.common.SignInButton
android:id="@+id/sign_in_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
In the class documentation it states that you can specify the size of the button as ICON_ONLY, STANDARD AND WIDE.
How do you do this using xml?
Here is how to do it in XML.
<com.google.android.gms.common.SignInButton
android:id="@+id/sign_in_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:buttonSize="wide"
app:colorScheme="dark"/>
buttonSize => ("wide", "standard, "icon_only"), colorScheme = > ("light", "dark")
Here's a list of the methods on SignInButton around size and style:
https://developer.android.com/reference/com/google/android/gms/common/SignInButton.html
I'm not aware of any way to do this in XML.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With