-
- All Implemented Interfaces:
public final class IconForm.BuilderBuilder class for IconForm.
-
-
Field Summary
Fields Modifier and Type Field Description private Drawabledrawableprivate IntegerdrawableResprivate IconGravityiconGravityprivate IntegericonWidthprivate IntegericonHeightprivate IntegericonSpaceprivate IntegericonColorprivate CharSequenceiconContentDescriptionprivate final Contextcontext
-
Constructor Summary
Constructors Constructor Description IconForm.Builder(Context context)
-
Method Summary
Modifier and Type Method Description final DrawablegetDrawable()final IntegergetDrawableRes()final IconGravitygetIconGravity()final IntegergetIconWidth()final IntegergetIconHeight()final IntegergetIconSpace()final IntegergetIconColor()final CharSequencegetIconContentDescription()final ContextgetContext()final IconForm.BuildersetDrawable(Drawable value)sets the Drawable of the icon. final IconForm.BuildersetDrawableResource(@DrawableRes() Integer value)sets the Drawable of the icon using resource. final IconForm.BuildersetDrawableGravity(IconGravity value)sets gravity of the Drawable of the icon using resource. final IconForm.BuildersetIconWidth(@Px() Integer value)sets the width size of the icon. final IconForm.BuildersetIconHeight(@Px() Integer value)sets the height size of the icon. final IconForm.BuildersetIconSize(@Px() Integer value)sets the size of the icon. final IconForm.BuildersetIconContentDescription(CharSequence value)sets the content description accessibility. final IconForm.BuildersetIconContentDescriptionResource(@StringRes() Integer value)sets the content description accessibility using resource. final IconForm.BuildersetIconSpace(@Px() Integer value)sets the space between the icon and the main text content. final IconForm.BuildersetIconColor(@ColorInt() Integer value)sets the color of the icon. final IconForm.BuildersetIconColorResource(@ColorRes() Integer value)sets the color of the icon using resource final IconFormbuild()-
-
Constructor Detail
-
IconForm.Builder
IconForm.Builder(Context context)
-
-
Method Detail
-
getDrawable
final Drawable getDrawable()
-
getDrawableRes
final Integer getDrawableRes()
-
getIconGravity
final IconGravity getIconGravity()
-
getIconWidth
final Integer getIconWidth()
-
getIconHeight
final Integer getIconHeight()
-
getIconSpace
final Integer getIconSpace()
-
getIconColor
final Integer getIconColor()
-
getIconContentDescription
final CharSequence getIconContentDescription()
-
getContext
final Context getContext()
-
setDrawable
final IconForm.Builder setDrawable(Drawable value)
sets the Drawable of the icon.
-
setDrawableResource
final IconForm.Builder setDrawableResource(@DrawableRes() Integer value)
sets the Drawable of the icon using resource.
-
setDrawableGravity
final IconForm.Builder setDrawableGravity(IconGravity value)
sets gravity of the Drawable of the icon using resource.
-
setIconWidth
final IconForm.Builder setIconWidth(@Px() Integer value)
sets the width size of the icon.
-
setIconHeight
final IconForm.Builder setIconHeight(@Px() Integer value)
sets the height size of the icon.
-
setIconSize
final IconForm.Builder setIconSize(@Px() Integer value)
sets the size of the icon.
-
setIconContentDescription
final IconForm.Builder setIconContentDescription(CharSequence value)
sets the content description accessibility.
-
setIconContentDescriptionResource
final IconForm.Builder setIconContentDescriptionResource(@StringRes() Integer value)
sets the content description accessibility using resource.
-
setIconSpace
final IconForm.Builder setIconSpace(@Px() Integer value)
sets the space between the icon and the main text content.
-
setIconColor
final IconForm.Builder setIconColor(@ColorInt() Integer value)
sets the color of the icon.
-
setIconColorResource
final IconForm.Builder setIconColorResource(@ColorRes() Integer value)
sets the color of the icon using resource
-
-
-
-