public final class ListApi
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected AppList<ViewModel> |
appList |
protected DefaultItemAnimator |
feedItemAnimator |
int |
page |
| Constructor and Description |
|---|
ListApi(ListApiListener listApiListener) |
| Modifier and Type | Method and Description |
|---|---|
void |
addModels(java.util.List<ViewModel> models) |
int |
addNewModelsForPullToRefresh() |
void |
apiError() |
boolean |
disablePullRefresh() |
DefaultItemAnimator |
getAnimator() |
AppList<ViewModel> |
getAppList() |
int |
getBackgroundColor() |
int |
getCardSpaceDimen() |
android.content.Context |
getContext() |
GridLayoutManager |
getGridLayoutManager(int spanCount) |
RecyclerView.LayoutManager |
getLayoutManager() |
LinearLayoutManager |
getLinearLayoutManager() |
LoadMoreModel |
getLoadMoreModel() |
int |
getOrientation() |
int[] |
getPadding() |
StaggeredGridLayoutManager |
getStaggeredGridLayoutManager() |
boolean |
isAutoLoad() |
boolean |
isAutoLoadMore() |
boolean |
isGrid() |
boolean |
isRefresh() |
void |
loaderAdded() |
void |
noResult() |
void |
refresh() |
protected final DefaultItemAnimator feedItemAnimator
public int page
public ListApi(ListApiListener listApiListener)
public void addModels(java.util.List<ViewModel> models)
public void noResult()
public void apiError()
public LoadMoreModel getLoadMoreModel()
public void refresh()
public boolean isRefresh()
public int addNewModelsForPullToRefresh()
public void loaderAdded()
public boolean disablePullRefresh()
public DefaultItemAnimator getAnimator()
public RecyclerView.LayoutManager getLayoutManager()
public LinearLayoutManager getLinearLayoutManager()
public StaggeredGridLayoutManager getStaggeredGridLayoutManager()
public GridLayoutManager getGridLayoutManager(int spanCount)
public boolean isGrid()
public int getOrientation()
public int getCardSpaceDimen()
public android.content.Context getContext()
public boolean isAutoLoad()
public boolean isAutoLoadMore()
public int[] getPadding()
public int getBackgroundColor()