Skip to content

Commit 78d8885

Browse files
Improvements
Added Behaviour table Added Parameters
1 parent 4ea4791 commit 78d8885

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

README.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ here is a solution, create any type of recycler view using this Adapter
77
# Single adapter for your all types of recycler view adapter requirements
88

99

10-
**Features**
10+
# Features
1111
1. Add Custom Loading for multiple cell like shimmer
1212
2. Show Load more progress at the end of the listing
1313
3. Bind to any item using Data Binding
@@ -16,6 +16,30 @@ here is a solution, create any type of recycler view using this Adapter
1616
6. Custom Layout for No Data Found (when list is empty and status is success)
1717

1818

19+
Status| List Size| Result Behaviour
20+
---|---|---
21+
LOADING |0 |Show Loading Cells (default 5 items)
22+
SUCCESS |0 |No Record Found Layout will be displayed
23+
ERROR |0| Error Layout Shown
24+
LOADING |more than 0| Data Cells + load more at end
25+
SUCCESS |more than 0| Data Cells
26+
ERROR |more than 0| Data Cells + error cell at end
27+
28+
29+
# Parameters
30+
```kotlin
31+
@LayoutRes val resource: Int,
32+
@LayoutRes val resourceShimmer: Int? = null,
33+
val defaultShimmerItems: Int = 5,
34+
@LayoutRes val loaderFooter: Int? = null,
35+
private var data: Resource<ArrayList<T>?>?= null,
36+
@LayoutRes val errorLayout: Int? = null,
37+
private var errorListener: Any? = null,
38+
private var mListener: Any? = null,
39+
@LayoutRes val noDataLayout: Int? = null,
40+
private var noDataListener: Any? = null
41+
```
42+
1943
<a href='https://github.com/yogeshpaliyal/Android-Universal-Recycler-View-MVVM-DataBinding/blob/master/app-debug_1_0_0.apk'>Download Sample App</a>
2044

2145

0 commit comments

Comments
 (0)