public class HistoryOption extends OptionItem
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<HistoryOption> |
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 | Constructor and Description |
---|---|
|
HistoryOption(int id,
int drawable,
boolean enabled) |
protected |
HistoryOption(android.os.Parcel in) |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
int |
getLayout()
Get the default layout res id of the list item view.
|
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.
|
boolean |
isSelectable() |
void |
setEnabled(boolean enabled) |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
equals, getId, getViewHolderClass
getLayout, getName, getThumbnailBitmap, getThumbnailResId, getThumbnailSource, isClickable, isDirty, setDirtyFlag, setName
public static final android.os.Parcelable.Creator<HistoryOption> CREATOR
public HistoryOption(int id, @DrawableRes int drawable, boolean enabled)
protected HistoryOption(android.os.Parcel in)
public boolean hasStaticThumbnail()
AbstractItem
hasStaticThumbnail
in class AbstractItem
AbstractItem.getThumbnailBitmap()
@Nullable public android.graphics.Bitmap getThumbnailBitmap(int maxWidth)
AbstractItem
getThumbnailBitmap
in class AbstractItem
maxWidth
- Size the drawable should be limited to.public void setEnabled(boolean enabled)
public int getLayout()
DataSourceInterface
getLayout
in interface DataSourceInterface
getLayout
in class OptionItem
public boolean isSelectable()
isSelectable
in interface DataSourceInterface
isSelectable
in class OptionItem
public int describeContents()
describeContents
in interface android.os.Parcelable
describeContents
in class OptionItem
public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable
writeToParcel
in class OptionItem