protected static class TextOptionToolPanel.TextStickerOption extends AbstractConfig implements DataSourceInterface<AbstractConfig.BindData>
AbstractConfig.AspectConfigInterface, AbstractConfig.BindData, AbstractConfig.ColorConfigInterface, AbstractConfig.ConfigViewHolder, AbstractConfig.FontConfigInterface<T>, AbstractConfig.ImageFilterInterface, AbstractConfig.StickerConfigInterface, AbstractConfig.ToolConfigInterface| Modifier and Type | Field and Description |
|---|---|
protected ly.img.android.ui.panels.TextOptionToolPanel.OPTION |
option |
NO_THUMBNAIL_ID, ORIGINAL_THUMBNAIL_SIZE| Constructor and Description |
|---|
TextStickerOption(ly.img.android.ui.panels.TextOptionToolPanel.OPTION option) |
| Modifier and Type | Method and Description |
|---|---|
int |
getLayout()
Get the layout res id of the list item view.
|
static int |
getNameRes(ly.img.android.ui.panels.TextOptionToolPanel.OPTION option) |
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() |
createViewHolder, generateBindData, generateBindDataAsync, getName, getThumbnailBitmap, getTitle, getVerticalLayout, isClickableclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateViewHolder, generateBindData, generateBindDataAsync, getName, getVerticalLayout@NonNull protected final ly.img.android.ui.panels.TextOptionToolPanel.OPTION option
public TextStickerOption(@NonNull
ly.img.android.ui.panels.TextOptionToolPanel.OPTION option)
public static int getNameRes(@NonNull
ly.img.android.ui.panels.TextOptionToolPanel.OPTION option)
public boolean isSelectable()
isSelectable in interface DataSourceInterface<AbstractConfig.BindData>public boolean hasStaticThumbnail()
AbstractConfighasStaticThumbnail in class AbstractConfigAbstractConfig.getThumbnailBitmap()public android.graphics.Bitmap getThumbnailBitmap(int maxWidth)
AbstractConfiggetThumbnailBitmap in class AbstractConfigmaxWidth - Size the drawable should be limited to.public int getThumbnailResId()
AbstractConfiggetThumbnailResId in class AbstractConfigAbstractConfig.hasStaticThumbnail()public int getLayout()
DataSourceInterfacegetLayout in interface DataSourceInterface<AbstractConfig.BindData>