public class TextStickerConfig extends java.lang.Object implements StickerConfigInterface
StickerConfigInterface.STICKER_TYPE
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<TextStickerConfig> |
CREATOR |
Modifier | Constructor and Description |
---|---|
protected |
TextStickerConfig(android.os.Parcel in) |
|
TextStickerConfig(java.lang.String text,
android.graphics.Paint.Align align,
FontConfigInterface font,
int color,
int backgroundColor) |
Modifier and Type | Method and Description |
---|---|
DataSourceListAdapter.DataSourceViewHolder<AbstractConfig.BindData> |
createViewHolder(android.view.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.
|
android.graphics.Paint.Align |
getAlign()
Get the text align of the Text-Sticker
|
int |
getBackgroundColor()
Get the Background Color
|
int |
getColor()
Get the Foreground Color
|
FontConfigInterface |
getFont()
Get the Text-Sticker Font
|
java.lang.String |
getId() |
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
|
android.graphics.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 |
setAlign(android.graphics.Paint.Align align)
Get the text align
|
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(android.os.Parcel dest,
int flags) |
public static final android.os.Parcelable.Creator<TextStickerConfig> CREATOR
protected TextStickerConfig(android.os.Parcel in)
public TextStickerConfig(java.lang.String text, android.graphics.Paint.Align align, FontConfigInterface font, int color, int backgroundColor)
@NonNull public DataSourceListAdapter.DataSourceViewHolder<AbstractConfig.BindData> createViewHolder(android.view.View view, boolean useVerticalLayout)
DataSourceInterface
createViewHolder
in interface DataSourceInterface<AbstractConfig.BindData>
view
- view inflated with #getLayoutpublic int describeContents()
describeContents
in interface android.os.Parcelable
public boolean equals(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 android.graphics.Paint.Align getAlign()
public int getBackgroundColor()
public int getColor()
public FontConfigInterface getFont()
public java.lang.String getId()
getId
in interface DataSourceInterface<AbstractConfig.BindData>
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 android.graphics.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 setAlign(android.graphics.Paint.Align align)
align
- the align of the Text-Stickerpublic 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(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable