CommonButtonProperties

data class CommonButtonProperties(val googleIconColor: Color = Color.Unspecified, val googleButtonText: GoogleText = GoogleText.Resource(R.string.button_login_google), val googleButtonIconContentDescription: GoogleText = GoogleText.Resource( R.string.default_icon_google_content_description ), val googleButtonTextSize: Int = 14, val googleIconSize: Int = 18, val spaceBetweenIconAndText: Int = 8, val textButtonColor: Color = Color.Unspecified, val googleIcon: GoogleIcon = GoogleIcon.WithResource(R.drawable.ic_google_button)) : ButtonProperties

CommonButtonProperties.

Properties for the common button that you can use in your Google Sign In.

Author

Joyner

Parameters

googleIconColor

Color color of the icon. Default is Color.Unspecified.

googleButtonText

Int resource of string. Default is R.string.button_login_google.

googleButtonTextSize

Int size of text. Default is 14.sp.

googleIconSize

Int. size of the icon. Default is 18.dp.

spaceBetweenIconAndText

Int space between the icon and text. Default is 8.dp.

textButtonColor

Color color of the text. Default is Color.Unspecified.

googleIcon

Int resource of icon if you need use other. Default is R.drawable.ic_google_button.

Constructors

Link copied to clipboard
constructor(googleIconColor: Color = Color.Unspecified, googleButtonText: GoogleText = GoogleText.Resource(R.string.button_login_google), googleButtonIconContentDescription: GoogleText = GoogleText.Resource( R.string.default_icon_google_content_description ), googleButtonTextSize: Int = 14, googleIconSize: Int = 18, spaceBetweenIconAndText: Int = 8, textButtonColor: Color = Color.Unspecified, googleIcon: GoogleIcon = GoogleIcon.WithResource(R.drawable.ic_google_button))

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val googleIcon: GoogleIcon
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard