Package com.skydoves.powerspinner
Class IconSpinnerItem
-
- All Implemented Interfaces:
public final class IconSpinnerItemIconSpinnerItem is an item class for constructing IconSpinnerAdapter.
-
-
Field Summary
Fields Modifier and Type Field Description private final CharSequencetextprivate final Drawableiconprivate final IntegericonResprivate final IntegericonPaddingprivate final IntegericonGravityprivate final IntegertextStyleprivate final TypefacetextTypefaceprivate final Integergravityprivate final FloattextSizeprivate final IntegertextColor
-
Constructor Summary
Constructors Constructor Description IconSpinnerItem(CharSequence text, Drawable icon, Integer iconRes, Integer iconPadding, Integer iconGravity, Integer textStyle, Typeface textTypeface, Integer gravity, Float textSize, Integer textColor)IconSpinnerItem(CharSequence text, Drawable icon, Integer iconRes, Integer iconPadding, Integer iconGravity, Integer textStyle, Typeface textTypeface, Integer gravity, Float textSize)IconSpinnerItem(CharSequence text, Drawable icon, Integer iconRes, Integer iconPadding, Integer iconGravity, Integer textStyle, Typeface textTypeface, Integer gravity)IconSpinnerItem(CharSequence text, Drawable icon, Integer iconRes, Integer iconPadding, Integer iconGravity, Integer textStyle, Typeface textTypeface)IconSpinnerItem(CharSequence text, Drawable icon, Integer iconRes, Integer iconPadding, Integer iconGravity, Integer textStyle)IconSpinnerItem(CharSequence text, Drawable icon, Integer iconRes, Integer iconPadding, Integer iconGravity)IconSpinnerItem(CharSequence text, Drawable icon, Integer iconRes, Integer iconPadding)IconSpinnerItem(CharSequence text, Drawable icon, Integer iconRes)IconSpinnerItem(CharSequence text, Drawable icon)IconSpinnerItem(CharSequence text)
-
Method Summary
Modifier and Type Method Description final CharSequencegetText()final DrawablegetIcon()final IntegergetIconRes()final IntegergetIconPadding()final IntegergetIconGravity()final IntegergetTextStyle()final TypefacegetTextTypeface()final IntegergetGravity()final FloatgetTextSize()final IntegergetTextColor()-
-
Constructor Detail
-
IconSpinnerItem
IconSpinnerItem(CharSequence text, Drawable icon, Integer iconRes, Integer iconPadding, Integer iconGravity, Integer textStyle, Typeface textTypeface, Integer gravity, Float textSize, Integer textColor)
- Parameters:
text- A text for constructing the spinner item.icon- An icon of the spinner item.iconRes- An icon resource of the spinner item.iconPadding- A padding between icon and text.iconGravity- A gravity of the icon.textStyle- A typeface for the text.gravity- A gravity of the text.textSize- A size of the text.textColor- A color of the text.
-
IconSpinnerItem
IconSpinnerItem(CharSequence text, Drawable icon, Integer iconRes, Integer iconPadding, Integer iconGravity, Integer textStyle, Typeface textTypeface, Integer gravity, Float textSize)
- Parameters:
text- A text for constructing the spinner item.icon- An icon of the spinner item.iconRes- An icon resource of the spinner item.iconPadding- A padding between icon and text.iconGravity- A gravity of the icon.textStyle- A typeface for the text.gravity- A gravity of the text.textSize- A size of the text.
-
IconSpinnerItem
IconSpinnerItem(CharSequence text, Drawable icon, Integer iconRes, Integer iconPadding, Integer iconGravity, Integer textStyle, Typeface textTypeface, Integer gravity)
- Parameters:
text- A text for constructing the spinner item.icon- An icon of the spinner item.iconRes- An icon resource of the spinner item.iconPadding- A padding between icon and text.iconGravity- A gravity of the icon.textStyle- A typeface for the text.gravity- A gravity of the text.
-
IconSpinnerItem
IconSpinnerItem(CharSequence text, Drawable icon, Integer iconRes, Integer iconPadding, Integer iconGravity, Integer textStyle, Typeface textTypeface)
- Parameters:
text- A text for constructing the spinner item.icon- An icon of the spinner item.iconRes- An icon resource of the spinner item.iconPadding- A padding between icon and text.iconGravity- A gravity of the icon.textStyle- A typeface for the text.
-
IconSpinnerItem
IconSpinnerItem(CharSequence text, Drawable icon, Integer iconRes, Integer iconPadding, Integer iconGravity, Integer textStyle)
- Parameters:
text- A text for constructing the spinner item.icon- An icon of the spinner item.iconRes- An icon resource of the spinner item.iconPadding- A padding between icon and text.iconGravity- A gravity of the icon.textStyle- A typeface for the text.
-
IconSpinnerItem
IconSpinnerItem(CharSequence text, Drawable icon, Integer iconRes, Integer iconPadding, Integer iconGravity)
- Parameters:
text- A text for constructing the spinner item.icon- An icon of the spinner item.iconRes- An icon resource of the spinner item.iconPadding- A padding between icon and text.iconGravity- A gravity of the icon.
-
IconSpinnerItem
IconSpinnerItem(CharSequence text, Drawable icon, Integer iconRes, Integer iconPadding)
- Parameters:
text- A text for constructing the spinner item.icon- An icon of the spinner item.iconRes- An icon resource of the spinner item.iconPadding- A padding between icon and text.
-
IconSpinnerItem
IconSpinnerItem(CharSequence text, Drawable icon, Integer iconRes)
- Parameters:
text- A text for constructing the spinner item.icon- An icon of the spinner item.iconRes- An icon resource of the spinner item.
-
IconSpinnerItem
IconSpinnerItem(CharSequence text, Drawable icon)
- Parameters:
text- A text for constructing the spinner item.icon- An icon of the spinner item.
-
IconSpinnerItem
IconSpinnerItem(CharSequence text)
- Parameters:
text- A text for constructing the spinner item.
-
-
Method Detail
-
getText
final CharSequence getText()
-
getIconRes
final Integer getIconRes()
-
getIconPadding
final Integer getIconPadding()
-
getIconGravity
final Integer getIconGravity()
-
getTextStyle
final Integer getTextStyle()
-
getTextTypeface
final Typeface getTextTypeface()
-
getGravity
final Integer getGravity()
-
getTextSize
final Float getTextSize()
-
getTextColor
final Integer getTextColor()
-
-
-
-