public static class StickerOptionToolPanel.HistoryStateOption extends StickerOptionToolPanel.StickerOption
AbstractConfig.BindData
Modifier and Type | Field and Description |
---|---|
protected StickerOptionToolPanel.OPTION |
option |
id, isDirty, ORIGINAL_THUMBNAIL_SIZE
Constructor and Description |
---|
HistoryStateOption(StickerOptionToolPanel.OPTION option,
boolean enabled) |
Modifier and Type | Method and Description |
---|---|
int |
getLayout()
Get the layout res id of the list item view.
|
android.graphics.Bitmap |
getThumbnailBitmap(int maxWidth)
Return the Thumbnail, do not call in Main Thread and use #getThumbnailResId() if #hasStaticThumbnail
|
int |
getThumbnailResId()
Get the static thumbnail drawable resource id if exist.
|
boolean |
hasStaticThumbnail()
Check if it has a static thumbnail drawable.
|
boolean |
isSelectable() |
void |
setEnabled(boolean enabled) |
getNameRes
createViewHolder, describeContents, generateBindData, generateBindDataAsync, getId, getName, getThumbnailBitmap, getThumbnailSource, getTitle, getVerticalLayout, isClickable, isDirty, setDirtyFlag, writeToParcel
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createViewHolder, generateBindData, generateBindDataAsync, getId, getName, getVerticalLayout, isDirty, setDirtyFlag
@NonNull protected final StickerOptionToolPanel.OPTION option
public HistoryStateOption(@NonNull StickerOptionToolPanel.OPTION option, boolean enabled)
public int getLayout()
DataSourceInterface
getLayout
in interface DataSourceInterface<AbstractConfig.BindData>
getLayout
in class StickerOptionToolPanel.StickerOption
@Nullable public android.graphics.Bitmap getThumbnailBitmap(int maxWidth)
AbstractConfig
getThumbnailBitmap
in class AbstractConfig
maxWidth
- Size the drawable should be limited to.public int getThumbnailResId()
AbstractConfig
getThumbnailResId
in class StickerOptionToolPanel.StickerOption
AbstractConfig.hasStaticThumbnail()
public boolean hasStaticThumbnail()
AbstractConfig
hasStaticThumbnail
in class StickerOptionToolPanel.StickerOption
AbstractConfig.getThumbnailBitmap()
public boolean isSelectable()
isSelectable
in interface DataSourceInterface<AbstractConfig.BindData>
isSelectable
in class StickerOptionToolPanel.StickerOption
public void setEnabled(boolean enabled)