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
* State holding with <b>OnItemSelectedListener</b> <sup><ahref="https://github.com/manneohlund/smart-recycler-adapter/blob/5.0.0-beta02/sample/src/main/java/smartrecycleradapter/feature/MultipleViewTypesResolverActivity.kt"target="_blank">MultipleViewTypesResolverActivity</a></sup>
* State holding with <b>OnItemSelectedListener</b> <sup><ahref="https://github.com/manneohlund/smart-recycler-adapter/blob/5.0.0-beta03/sample/src/main/kotlin/smartrecycleradapter/feature/MultipleViewTypesResolverActivity.kt"target="_blank">MultipleViewTypesResolverActivity</a></sup>
###### ItemTouchHelper Swipe, Drag & Drop extensions
20
-
* Drag & drop <sup><ahref="https://github.com/manneohlund/smart-recycler-adapter/blob/5.0.0-beta02/sample/src/main/java/smartrecycleradapter/feature/DragAndDropItemActivity.kt"target="_blank">DragAndDropItemActivity</a></sup>
21
-
* Drag & drop with handle <sup><ahref="https://github.com/manneohlund/smart-recycler-adapter/blob/5.0.0-beta02/sample/src/main/java/smartrecycleradapter/feature/DragAndDropHandleItemActivity.kt"target="_blank">DragAndDropHandleItemActivity</a></sup>
22
-
* Swipe to remove item <sup><ahref="https://github.com/manneohlund/smart-recycler-adapter/blob/5.0.0-beta02/sample/src/main/java/smartrecycleradapter/feature/SwipeRemoveItemActivity.kt"target="_blank">SwipeRemoveItemActivity</a></sup>
* Grid + Drag & drop <sup><ahref="https://github.com/manneohlund/smart-recycler-adapter/blob/5.0.0-beta02/sample/src/main/java/smartrecycleradapter/feature/GridActivity.kt"target="_blank">GridActivity</a></sup>
20
+
* Drag & drop <sup><ahref="https://github.com/manneohlund/smart-recycler-adapter/blob/5.0.0-beta03/sample/src/main/kotlin/smartrecycleradapter/feature/DragAndDropItemActivity.kt"target="_blank">DragAndDropItemActivity</a></sup>
21
+
* Drag & drop with handle <sup><ahref="https://github.com/manneohlund/smart-recycler-adapter/blob/5.0.0-beta03/sample/src/main/kotlin/smartrecycleradapter/feature/DragAndDropHandleItemActivity.kt"target="_blank">DragAndDropHandleItemActivity</a></sup>
22
+
* Swipe to remove item <sup><ahref="https://github.com/manneohlund/smart-recycler-adapter/blob/5.0.0-beta03/sample/src/main/kotlin/smartrecycleradapter/feature/SwipeRemoveItemActivity.kt"target="_blank">SwipeRemoveItemActivity</a></sup>
* Single RadioButton select <sup><ahref="https://github.com/manneohlund/smart-recycler-adapter/blob/5.0.0-beta02/sample/src/main/java/smartrecycleradapter/feature/SingleSelectRadioButtonItemActivity.kt"target="_blank">SingleSelectRadioButtonItemActivity</a></sup>
* Single Expandable item <sup><ahref="https://github.com/manneohlund/smart-recycler-adapter/blob/5.0.0-beta02/sample/src/main/java/smartrecycleradapter/feature/SingleExpandableItemActivity.kt"target="_blank">SingleExpandableItemActivity</a></sup>
* Single RadioButton select <sup><ahref="https://github.com/manneohlund/smart-recycler-adapter/blob/5.0.0-beta03/sample/src/main/kotlin/smartrecycleradapter/feature/SingleSelectRadioButtonItemActivity.kt"target="_blank">SingleSelectRadioButtonItemActivity</a></sup>
* Single Expandable item <sup><ahref="https://github.com/manneohlund/smart-recycler-adapter/blob/5.0.0-beta03/sample/src/main/kotlin/smartrecycleradapter/feature/SingleExpandableItemActivity.kt"target="_blank">SingleExpandableItemActivity</a></sup>
* Endless scroll with load more button <sup><ahref="https://github.com/manneohlund/smart-recycler-adapter/blob/5.0.0-beta02/sample/src/main/java/smartrecycleradapter/feature/EndlessScrollLoadMoreButtonActivity.kt"target="_blank">EndlessScrollLoadMoreButtonActivity</a></sup>
* Endless scroll with load more button <sup><ahref="https://github.com/manneohlund/smart-recycler-adapter/blob/5.0.0-beta03/sample/src/main/kotlin/smartrecycleradapter/feature/EndlessScrollLoadMoreButtonActivity.kt"target="_blank">EndlessScrollLoadMoreButtonActivity</a></sup>
As of `smart-recycler-adapter:v5.0.0` diff util have been removed from `SmartRecyclerAdapter` and is added in this extension library `smart-recycler-adapter-diffutil`.
250
+
Essentially the `SmartRecyclerAdapter` will now hold a map of `SmartRecyclerAdapterExtension` that is the basic interface for `SmartRecyclerAdapter` binding extensions.
251
+
252
+
```kotlin
253
+
// If adapter items contains unspecified super type DiffPredicate bust be of type Any, DiffPredicate<Any>
If you want to bind one data type with different view holders depending on some attribute you can set a ViewTypeResolver.<br/>
@@ -335,7 +375,7 @@ You can also set your custom loading/loadmore view.
335
375
336
376
# More
337
377
338
-
For more samples test out the sample app and see the [source code](https://github.com/manneohlund/smart-recycler-adapter/tree/master/sample/src/main/java/com/example/smartrecycleradapter).
378
+
For more samples test out the sample app and see the [source code](https://github.com/manneohlund/smart-recycler-adapter/tree/master/sample/src/main/kotlin/com/example/smartrecycleradapter).
0 commit comments