protected static class StickerOptionToolPanel.StickerColorOption extends StickerOptionToolPanel.StickerOption
AbstractConfig.BindData
option
id, isDirty, ORIGINAL_THUMBNAIL_SIZE
Constructor and Description |
---|
StickerColorOption(StickerOptionToolPanel.OPTION option,
int color) |
Modifier and Type | Method and Description |
---|---|
android.graphics.Bitmap |
getThumbnailBitmap()
Return Thumbnail in full size.
|
android.graphics.Bitmap |
getThumbnailBitmap(int maxWidth)
Return the Thumbnail, do not call in Main Thread and use #getThumbnailResId() if #hasStaticThumbnail
|
boolean |
hasStaticThumbnail()
Check if it has a static thumbnail drawable.
|
void |
setColor(int color) |
getLayout, getNameRes, getThumbnailResId, isSelectable
createViewHolder, describeContents, generateBindData, generateBindDataAsync, getId, getName, 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
public StickerColorOption(@NonNull StickerOptionToolPanel.OPTION option, int color)
@Nullable public android.graphics.Bitmap getThumbnailBitmap()
AbstractConfig
getThumbnailBitmap
in class AbstractConfig
AbstractConfig.getThumbnailBitmap(int maxWidth)
@Nullable public android.graphics.Bitmap getThumbnailBitmap(int maxWidth)
AbstractConfig
getThumbnailBitmap
in class AbstractConfig
maxWidth
- Size the drawable should be limited to.public boolean hasStaticThumbnail()
AbstractConfig
hasStaticThumbnail
in class StickerOptionToolPanel.StickerOption
AbstractConfig.getThumbnailBitmap()
public void setColor(int color)