public interface DataSourceInterface<DATA>
extends android.os.Parcelable
Modifier and Type | Method and Description |
---|---|
DataSourceListAdapter.DataSourceViewHolder<DATA> |
createViewHolder(android.view.View view,
boolean useVerticalLayout)
Create a ViewHolder to Display in List
|
DATA |
generateBindData()
Load custom binding data Synchronous.
|
DATA |
generateBindDataAsync()
Load custom binding data asynchronous.
|
java.lang.String |
getId() |
int |
getLayout()
Get the layout res id of the list item view.
|
java.lang.String |
getName()
Get the Name
|
int |
getVerticalLayout()
Get the vertical layout res id of the list item view.
|
boolean |
isDirty() |
boolean |
isSelectable() |
void |
setDirtyFlag(boolean isDirty) |
@NonNull DataSourceListAdapter.DataSourceViewHolder<DATA> createViewHolder(android.view.View view, boolean useVerticalLayout)
view
- view inflated with #getLayout@Nullable DATA generateBindData()
@Nullable DATA generateBindDataAsync()
java.lang.String getId()
@LayoutRes int getLayout()
@Nullable java.lang.String getName()
@LayoutRes int getVerticalLayout()
boolean isDirty()
boolean isSelectable()
void setDirtyFlag(boolean isDirty)