You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 2, 2021. It is now read-only.
@@ -175,32 +175,45 @@ You can also call `itemSelectionToggled()` to make it selected by yourself. Kind
175
175
Finally, you can call `DataListManager`'s `getSelectedItems()` and `setSelectedItems(List<E> selectedItems)` to get and set selected items respectively.
176
176
177
177
### Using DiffUtil and Payload
178
-
DataListManager and DataItemManager will take care of diffutil. There is no special code needed. But to enable the payloads, you have to create custom DataManager and override `areContensSame(Object, Object)` and `getChangePayload(Object, Object)`.
178
+
DataListManager and DataItemManager will take care of diffutil. There is no special code needed. But to enable the payloads, you have to pass PayloadProvider to DataListManager's constructor.
returnsuper.getChangePayload(oldItem, newItem); // Own impl
204
+
publicvoidaddData(List<CarModel>dataList) {
205
+
dataManager.addAll(dataList);
194
206
}
195
207
}
196
208
```
197
209
198
210
## Roadmap
199
-
I am actively working on expanding the feature set of this library. While i don't have a exact timeline, but here are the future plans.
211
+
I am actively working on expanding the feature set of this library. While i don't have a exact timeline, but here are the future plans. All these will be taken up once 1.0 is released.
200
212
1. Add support for StaggeredGrid layout manager
201
213
2. Move diffutil calculation to background thread
202
214
3. Adding support for swipe listeners with composability as priority
203
215
4. Improve the sample app code and api documentation
216
+
5. Expandable item / group
204
217
205
218
206
219
## Changelog
@@ -219,7 +232,7 @@ Kindly make sure your code is formatted with this codestyle - [Square Java code
219
232
220
233
## Alternatives
221
234
This library may not suit your needs or imposes too many restrictions. In that case create an issue/feature request. In the mean time check these awesome alternatives as well.
222
-
1.[MultipleViewTypesAdapter](https://github.com/yqritc/RecyclerView-MultipleViewTypesAdapter) - Original inspiration for this library. By inspiration, we mean that parts of code were "re-used"<br/>
235
+
1.[MultipleViewTypesAdapter](https://github.com/yqritc/RecyclerView-MultipleViewTypesAdapter) - Original inspiration for this library.<br/>
0 commit comments