public class

GoogleSignInButton

extends View
java.lang.Object
   ↳ com.neomades.ui.View
     ↳ com.neomades.googlesignin.button.GoogleSignInButton

Class Overview

The Google sign-in button to authenticate the user. Note that this class only handles the visual aspects of the button. In order to trigger an action, register a listener using setClickListener(com.neomades.ui.listeners.ClickListener).

Cross-Platform considerations

Available only for Android.

Summary

[Expand]
Inherited XML Attributes
From class com.neomades.ui.View
[Expand]
Inherited Constants
From interface com.neomades.ui.Alignment
From interface com.neomades.ui.StretchMode
Public Constructors
GoogleSignInButton()
Public Methods
void setColorScheme(int colorScheme)
Set the color scheme of the button to use.
final void setEnabled(boolean enabled)
Enables or not the button, true by default.
void setSize(int buttonSize)
Set the size of the button to use.
void setStyle(int buttonSize, int colorScheme)
Set the desired style of button to use.
[Expand]
Inherited Methods
From class com.neomades.ui.View
From class java.lang.Object

Public Constructors

public GoogleSignInButton ()

Public Methods

public void setColorScheme (int colorScheme)

Set the color scheme of the button to use.

Parameters
colorScheme One of COLOR_AUTO, COLOR_DARK or COLOR_LIGHT

public final void setEnabled (boolean enabled)

Enables or not the button, true by default.

Parameters
enabled false to disable the button

public void setSize (int buttonSize)

Set the size of the button to use. The color and branding scheme will remain unchanged.

Parameters
buttonSize buttonSize One of SIZE_ICON_ONLY, SIZE_STANDARD, SIZE_WIDE

public void setStyle (int buttonSize, int colorScheme)

Set the desired style of button to use. This will update the button to use the specified size and color scheme.

Parameters
buttonSize buttonSize One of SIZE_ICON_ONLY, SIZE_STANDARD, SIZE_WIDE
colorScheme One of COLOR_AUTO, COLOR_DARK or COLOR_LIGHT