public class TextStickerConfig extends java.lang.Object implements AbstractConfig.StickerConfigInterface
AbstractConfig.StickerConfigInterface.STICKER_TYPE| Constructor and Description |
|---|
TextStickerConfig(java.lang.String name,
android.graphics.Paint.Align align,
AbstractConfig.FontConfigInterface font,
int color,
int backgroundColor) |
| Modifier and Type | Method and Description |
|---|---|
DataSourceListAdapter.DataSourceViewHolder |
createViewHolder(android.view.View view,
boolean useVerticalLayout)
Create a ViewHolder to Display in List
|
boolean |
equals(java.lang.Object o) |
AbstractConfig.BindData |
generateBindData()
Load custom binding data Synchronous.
|
AbstractConfig.BindData |
generateBindDataAsync()
Load custom binding data asynchronous.
|
android.graphics.Paint.Align |
getAlign()
Deprecated.
is not implemented
|
int |
getBackgroundColor()
Get the Background Color
|
int |
getColor()
Get the Foreground Color
|
AbstractConfig.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
|
int |
getStickerId()
Get sticker drawable resource id.
|
java.lang.String |
getText()
Get the Text-Sticker Text
|
AbstractConfig.StickerConfigInterface.STICKER_TYPE |
getType()
Return the type of the sticker
|
android.graphics.Typeface |
getTypeface()
Get the font Typeface
|
int |
getVerticalLayout()
Get the vertical layout res id of the list item view.
|
int |
hashCode() |
boolean |
isSelectable() |
void |
setAlign(android.graphics.Paint.Align align)
Deprecated.
is not implemented
|
void |
setBackgroundColor(int color)
Set background Color
|
void |
setColor(int color)
Set foreground Color
|
void |
setFont(AbstractConfig.FontConfigInterface font)
Set the Text-Sticker font
|
void |
setText(java.lang.String text)
Set Text-Sticker text
|
void |
setText(java.lang.String text,
android.graphics.Paint.Align align)
Deprecated.
not implemented
|
java.lang.String |
toString() |
public TextStickerConfig(java.lang.String name,
android.graphics.Paint.Align align,
AbstractConfig.FontConfigInterface font,
int color,
int backgroundColor)
@NonNull public AbstractConfig.StickerConfigInterface.STICKER_TYPE getType()
AbstractConfig.StickerConfigInterfacegetType in interface AbstractConfig.StickerConfigInterfaceAbstractConfig.StickerConfigInterface.STICKER_TYPEpublic int getStickerId()
AbstractConfig.StickerConfigInterfacegetStickerId in interface AbstractConfig.StickerConfigInterfacepublic boolean isSelectable()
isSelectable in interface DataSourceInterface<AbstractConfig.BindData>public java.lang.String getText()
public AbstractConfig.FontConfigInterface getFont()
public android.graphics.Paint.Align getAlign()
public void setAlign(android.graphics.Paint.Align align)
align - the align of the Text-Sticker@Nullable public android.graphics.Typeface getTypeface()
public int getColor()
public int getBackgroundColor()
public void setText(java.lang.String text)
text - text stringpublic void setText(java.lang.String text,
android.graphics.Paint.Align align)
text - text stringalign - text alignpublic void setFont(AbstractConfig.FontConfigInterface font)
font - font config objectpublic void setColor(int color)
color - 32bit rgba color valuepublic void setBackgroundColor(int color)
color - 32bit rgba color valuepublic boolean equals(@Nullable
java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object@Nullable public java.lang.String getName()
DataSourceInterfacegetName in interface DataSourceInterface<AbstractConfig.BindData>public int getLayout()
DataSourceInterfacegetLayout in interface DataSourceInterface<AbstractConfig.BindData>public int getVerticalLayout()
DataSourceInterfacegetVerticalLayout in interface DataSourceInterface<AbstractConfig.BindData>@Nullable public DataSourceListAdapter.DataSourceViewHolder createViewHolder(android.view.View view, boolean useVerticalLayout)
DataSourceInterfacecreateViewHolder in interface DataSourceInterface<AbstractConfig.BindData>view - view inflated with #getLayout@Nullable public AbstractConfig.BindData generateBindData()
DataSourceInterfacegenerateBindData in interface DataSourceInterface<AbstractConfig.BindData>@Nullable public AbstractConfig.BindData generateBindDataAsync()
DataSourceInterfacegenerateBindDataAsync in interface DataSourceInterface<AbstractConfig.BindData>@NonNull public java.lang.String toString()
toString in class java.lang.Object