public class AppRecyclerView extends RecyclerView implements ListObserver
| Constructor and Description |
|---|
AppRecyclerView(android.content.Context context) |
AppRecyclerView(android.content.Context context,
android.util.AttributeSet attrs) |
AppRecyclerView(android.content.Context context,
android.util.AttributeSet attrs,
int defStyle) |
| Modifier and Type | Method and Description |
|---|---|
void |
adding() |
void |
error() |
void |
init(ListApi api) |
void |
itemAdded(int position) |
void |
itemChanged(int position,
java.lang.String payLoad) |
void |
itemRemoved(int position) |
void |
itemsAdded(int from,
int count) |
void |
itemsRemoved(int from,
int count) |
void |
listCleared() |
void |
loaderAdded(int position,
LoadMoreModel loadMoreModel) |
void |
moveToPosition(int position) |
void |
noResult() |
void |
onScrolled(int dx,
int dy) |
void |
onScrollStateChanged(int state)
This case comes into action when there's only one item in list and list is not scrollable and list has more items to get via api
|
void |
switchLayoutManager(int index) |
public ListApi listApi
public AppRecyclerView(android.content.Context context)
public AppRecyclerView(android.content.Context context,
android.util.AttributeSet attrs)
public AppRecyclerView(android.content.Context context,
android.util.AttributeSet attrs,
int defStyle)
public void init(ListApi api)
public void onScrolled(int dx,
int dy)
public void onScrollStateChanged(int state)
public void adding()
adding in interface ListObserverpublic void noResult()
noResult in interface ListObserverpublic void error()
error in interface ListObserverpublic void loaderAdded(int position,
LoadMoreModel loadMoreModel)
loaderAdded in interface ListObserverpublic void switchLayoutManager(int index)
switchLayoutManager in interface ListObserverpublic void itemsAdded(int from,
int count)
itemsAdded in interface ListObserverpublic void itemsRemoved(int from,
int count)
itemsRemoved in interface ListObserverpublic void itemAdded(int position)
itemAdded in interface ListObserverpublic void itemRemoved(int position)
itemRemoved in interface ListObserverpublic void itemChanged(int position,
java.lang.String payLoad)
itemChanged in interface ListObserverpublic void listCleared()
listCleared in interface ListObserverpublic void moveToPosition(int position)
moveToPosition in interface ListObserver