@@ -7,7 +7,7 @@ here is a solution, create any type of recycler view using this Adapter
7
7
# Single adapter for your all types of recycler view adapter requirements
8
8
9
9
10
- ** Features**
10
+ # Features
11
11
1 . Add Custom Loading for multiple cell like shimmer
12
12
2 . Show Load more progress at the end of the listing
13
13
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
16
16
6 . Custom Layout for No Data Found (when list is empty and status is success)
17
17
18
18
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
+
19
43
<a href =' https://github.com/yogeshpaliyal/Android-Universal-Recycler-View-MVVM-DataBinding/blob/master/app-debug_1_0_0.apk ' >Download Sample App</a >
20
44
21
45
0 commit comments