protected static class TextOptionToolPanel.TextStickerColorOption extends TextOptionToolPanel.TextStickerOption
CREATOR
id
FLAVOR_OPTION_LIST, FLAVOR_OPTION_LIST_FOLDER_SUBITEM, FLAVOR_QUICK_OPTION_LIST, FLAVOR_QUICK_OPTION_LIST_FOLDER_SUBITEM, isDirty, ORIGINAL_THUMBNAIL_SIZE
Modifier and Type | Method and Description |
---|---|
int |
getLayout()
Get the default layout res id of the list item view.
|
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
|
int |
getThumbnailResId()
Get the static thumbnail drawable resource id if exist.
|
boolean |
hasStaticThumbnail()
Check if it has a static thumbnail drawable.
|
void |
setColor(int color) |
describeContents, isSelectable, writeToParcel
equals, getId, getViewHolderClass
getLayout, getName, getThumbnailSource, isClickable, isDirty, setDirtyFlag, setName
public int getThumbnailResId()
AbstractItem
getThumbnailResId
in class AbstractItem
AbstractItem.hasStaticThumbnail()
public boolean hasStaticThumbnail()
AbstractItem
hasStaticThumbnail
in class TextOptionToolPanel.TextStickerOption
AbstractItem.getThumbnailBitmap()
@Nullable public android.graphics.Bitmap getThumbnailBitmap()
AbstractItem
getThumbnailBitmap
in class AbstractItem
AbstractItem.getThumbnailBitmap(int maxWidth)
public android.graphics.Bitmap getThumbnailBitmap(int maxWidth)
AbstractItem
getThumbnailBitmap
in class TextOptionToolPanel.TextStickerOption
maxWidth
- Size the drawable should be limited to.public void setColor(int color)
public int getLayout()
DataSourceInterface
getLayout
in interface DataSourceInterface
getLayout
in class TextOptionToolPanel.TextStickerOption