public class ColorItem extends AbstractItem
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<ColorItem> |
CREATOR |
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 |
---|---|
|
ColorItem(int name,
ColorAsset colorConfig) |
protected |
ColorItem(android.os.Parcel in) |
|
ColorItem(java.lang.String name,
ColorAsset colorConfig) |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
boolean |
equals(java.lang.Object o) |
ColorAsset |
getData() |
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
|
java.lang.Class<? extends DataSourceListAdapter.DataSourceViewHolder> |
getViewHolderClass()
Get the class of a ViewHolder to Display in List
|
int |
hashCode() |
boolean |
hasStaticThumbnail()
Check if it has a static thumbnail drawable.
|
boolean |
isSelectable() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
getLayout, getName, getThumbnailResId, getThumbnailSource, isClickable, isDirty, setDirtyFlag, setName
public static final android.os.Parcelable.Creator<ColorItem> CREATOR
public ColorItem(java.lang.String name, ColorAsset colorConfig)
public ColorItem(@StringRes int name, ColorAsset colorConfig)
protected ColorItem(android.os.Parcel in)
public int getLayout()
DataSourceInterface
getLayout
in interface DataSourceInterface
getLayout
in class AbstractItem
public boolean hasStaticThumbnail()
AbstractItem
hasStaticThumbnail
in class AbstractItem
AbstractItem.getThumbnailBitmap()
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 AbstractItem
maxWidth
- Size the drawable should be limited to.public boolean equals(java.lang.Object o)
equals
in class AbstractItem
public ColorAsset getData()
public int hashCode()
hashCode
in class java.lang.Object
@NonNull public java.lang.Class<? extends DataSourceListAdapter.DataSourceViewHolder> getViewHolderClass()
DataSourceInterface
getViewHolderClass
in interface DataSourceInterface
getViewHolderClass
in class AbstractItem
public boolean isSelectable()
public int describeContents()
describeContents
in interface android.os.Parcelable
describeContents
in class AbstractItem
public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable
writeToParcel
in class AbstractItem