protected static class StickerOptionToolPanel.StickerColorOption extends StickerOptionToolPanel.StickerOption
AbstractConfig.BindData
option
isDirty, ORIGINAL_THUMBNAIL_SIZE
Constructor and Description |
---|
StickerColorOption(ly.img.android.ui.panels.StickerOptionToolPanel.OPTION option,
int color) |
Modifier and Type | Method and Description |
---|---|
Bitmap |
getThumbnailBitmap()
Return Thumbnail in full size.
|
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, getName, getThumbnailSource, getTitle, getVerticalLayout, isClickable, isDirty, setDirtyFlag, writeToParcel
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createViewHolder, generateBindData, generateBindDataAsync, getName, getVerticalLayout, isDirty, setDirtyFlag
public StickerColorOption(@NonNull ly.img.android.ui.panels.StickerOptionToolPanel.OPTION option, int color)
@Nullable public Bitmap getThumbnailBitmap()
AbstractConfig
getThumbnailBitmap
in class AbstractConfig
AbstractConfig.getThumbnailBitmap(int maxWidth)
@Nullable public 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)