Common Button Properties
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
google Icon Color
Color color of the icon. Default is Color.Unspecified.
google Button Text
Int resource of string. Default is R.string.button_login_google.
google Button Text Size
Int size of text. Default is 14.sp.
google Icon Size
Int. size of the icon. Default is 18.dp.
space Between Icon And Text
Int space between the icon and text. Default is 8.dp.
text Button Color
Color color of the text. Default is Color.Unspecified.
google Icon
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))