public class TextStickerConfig extends java.lang.Object implements StickerConfigInterface
StickerConfigInterface.STICKER_TYPE
Modifier and Type | Field and Description |
---|---|
static <any> |
CREATOR |
Modifier | Constructor and Description |
---|---|
protected |
TextStickerConfig(Parcel in) |
|
TextStickerConfig(java.lang.String name,
Paint.Align align,
FontConfigInterface font,
int color,
int backgroundColor) |
Modifier and Type | Method and Description |
---|---|
DataSourceListAdapter.DataSourceViewHolder<AbstractConfig.BindData> |
createViewHolder(View view,
boolean useVerticalLayout)
Create a ViewHolder to Display in List
|
int |
describeContents() |
boolean |
equals(java.lang.Object o) |
AbstractConfig.BindData |
generateBindData()
Load custom binding data Synchronous.
|
AbstractConfig.BindData |
generateBindDataAsync()
Load custom binding data asynchronous.
|
int |
getBackgroundColor()
Get the Background Color
|
int |
getColor()
Get the Foreground Color
|
FontConfigInterface |
getFont()
Get the Text-Sticker Font
|
int |
getLayout()
Get the layout res id of the list item view.
|
java.lang.String |
getName()
Get the Name
|
ImageSource |
getStickerSource()
Get the drawable sticker image source
|
java.lang.String |
getText()
Get the Text-Sticker Text
|
StickerConfigInterface.STICKER_TYPE |
getType()
Return the type of the sticker
|
Typeface |
getTypeface()
Get the font Typeface
|
int |
getVerticalLayout()
Get the vertical layout res id of the list item view.
|
int |
hashCode() |
boolean |
isDirty() |
boolean |
isSelectable() |
void |
setBackgroundColor(int color)
Set background Color
|
void |
setColor(int color)
Set foreground Color
|
void |
setDirtyFlag(boolean isDirty) |
void |
setFont(FontConfigInterface font)
Set the Text-Sticker font
|
void |
setText(java.lang.String text)
Set Text-Sticker text
|
java.lang.String |
toString() |
void |
writeToParcel(Parcel dest,
int flags) |
protected TextStickerConfig(Parcel in)
public TextStickerConfig(java.lang.String name, Paint.Align align, FontConfigInterface font, int color, int backgroundColor)
@NonNull public DataSourceListAdapter.DataSourceViewHolder<AbstractConfig.BindData> createViewHolder(View view, boolean useVerticalLayout)
DataSourceInterface
createViewHolder
in interface DataSourceInterface<AbstractConfig.BindData>
view
- view inflated with #getLayoutpublic int describeContents()
public boolean equals(@Nullable java.lang.Object o)
equals
in class java.lang.Object
@Nullable public AbstractConfig.BindData generateBindData()
DataSourceInterface
generateBindData
in interface DataSourceInterface<AbstractConfig.BindData>
@Nullable public AbstractConfig.BindData generateBindDataAsync()
DataSourceInterface
generateBindDataAsync
in interface DataSourceInterface<AbstractConfig.BindData>
public int getBackgroundColor()
public int getColor()
public FontConfigInterface getFont()
public int getLayout()
DataSourceInterface
getLayout
in interface DataSourceInterface<AbstractConfig.BindData>
@Nullable public java.lang.String getName()
DataSourceInterface
getName
in interface DataSourceInterface<AbstractConfig.BindData>
public ImageSource getStickerSource()
StickerConfigInterface
getStickerSource
in interface StickerConfigInterface
public java.lang.String getText()
@NonNull public StickerConfigInterface.STICKER_TYPE getType()
StickerConfigInterface
getType
in interface StickerConfigInterface
StickerConfigInterface.STICKER_TYPE
@Nullable public Typeface getTypeface()
public int getVerticalLayout()
DataSourceInterface
getVerticalLayout
in interface DataSourceInterface<AbstractConfig.BindData>
public int hashCode()
hashCode
in class java.lang.Object
public boolean isDirty()
isDirty
in interface DataSourceInterface<AbstractConfig.BindData>
public boolean isSelectable()
isSelectable
in interface DataSourceInterface<AbstractConfig.BindData>
public void setBackgroundColor(int color)
color
- 32bit rgba color valuepublic void setColor(int color)
color
- 32bit rgba color valuepublic void setDirtyFlag(boolean isDirty)
setDirtyFlag
in interface DataSourceInterface<AbstractConfig.BindData>
public void setFont(FontConfigInterface font)
font
- font config objectpublic void setText(java.lang.String text)
text
- text string@NonNull public java.lang.String toString()
toString
in class java.lang.Object
public void writeToParcel(Parcel dest, int flags)