protected static class StickerOptionToolPanel.StickerColorOption extends StickerOptionToolPanel.StickerOption
CREATOR, id
FLAVOR_OPTION_LIST, FLAVOR_OPTION_LIST_FOLDER_SUBITEM, FLAVOR_QUICK_OPTION_LIST, FLAVOR_QUICK_OPTION_LIST_FOLDER_SUBITEM, isDirty, ORIGINAL_THUMBNAIL_SIZE
Constructor and Description |
---|
StickerColorOption(int 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
describeContents, equals, getId, getViewHolderClass, writeToParcel
getLayout, getName, getThumbnailResId, getThumbnailSource, isClickable, isDirty, setDirtyFlag, setName
public boolean hasStaticThumbnail()
AbstractItem
hasStaticThumbnail
in class StickerOptionToolPanel.StickerOption
AbstractItem.getThumbnailBitmap()
public void setColor(int color)
@Nullable public android.graphics.Bitmap getThumbnailBitmap()
AbstractItem
getThumbnailBitmap
in class AbstractItem
AbstractItem.getThumbnailBitmap(int maxWidth)
@Nullable public android.graphics.Bitmap getThumbnailBitmap(int maxWidth)
AbstractItem
getThumbnailBitmap
in class AbstractItem
maxWidth
- Size the drawable should be limited to.