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
Copy file name to clipboardExpand all lines: MIGRATION.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,8 +24,8 @@ override fun onBindViewHolder(holder: RecyclerView.ViewHolder, position: Int, pa
24
24
25
25
#### v4.x.y
26
26
27
-
v4 is a huge release changing most of the codebase to Kotlin. This comes with many refactors, and as a result of that with many breaking API changes.
28
-
We put a lot of focus on type safety with this release, as such this release is a lot more strict and tries to prevent as many potential bad type mixups as possible.
27
+
v4 is a huge release changing most of the codebase to Kotlin. This comes with many refactorings, and as a result of that with many breaking API changes.
28
+
We put a lot of focus on type safety with this release, as such this release is a lot more strict and tries to prevent as many potential bad type mix-ups as possible.
29
29
30
30
* For compatibility, most existing static fields and functions remain static in Java. For newer functions, accessing from Java may require using the `Companion` class. For instance, `FastAdapter.example()` becomes `FastAdapter.Companion.example()`
31
31
* The `IItem` interface now requires a type specification. E.g. `IItem<RecyclerView.ViewHolder>`
@@ -57,7 +57,7 @@ If you have any issues during the migration, or any questions come up please ope
57
57
* Further details about migrating to androidX and a overview can be found on the official docs. https://developer.android.com/topic/libraries/support-library/refactor
58
58
59
59
#### v3.2.4
60
-
* Adjusted the `set(int position, Item item, int preItemCount)` to include the `preItemCount` to corretly notify the adapter about the changed element.
60
+
* Adjusted the `set(int position, Item item, int preItemCount)` to include the `preItemCount` to correctly notify the adapter about the changed element.
61
61
62
62
#### v3.2.3
63
63
* The `ActionModeHelper` requires a `FastAdapter` with the `SelectExtension` applied. This is done in current versions via `withSelectable(true)`. Make sure this is called before creating the `ActionModeHelper`.
@@ -156,17 +156,17 @@ public ViewHolder getViewHolder(View v) {
156
156
157
157
**SHORT OVERVIEW**
158
158
* If you have items implemented by using the interface you have to implement the new methods (**unbindView**)
159
-
* If you have expandable items make sure to adjust the Model type definitions as metioned below. Check out the `AbstractExpandableItem` to simplify this for you
159
+
* If you have expandable items make sure to adjust the Model type definitions as mentioned below. Check out the `AbstractExpandableItem` to simplify this for you
160
160
* If you use the `MaterialDrawer`, the `AboutLibraries` in your project, please make sure to update them so the changed interfaces do not cause conflicts
161
161
162
162
**DETAILED**
163
163
* New `unbindView` method was added to the `IItem` --> This method is called when the current item is no longer set and before the `ViewHolder` is used for the next item
164
164
* You should move your view resetting logic here, or for example glide image loading canceling
165
165
*`IExpandable` Model types changes
166
-
* it is now required to define the type which will be used for the subItems. This can be an implementation or `ISubItem`. We now require this, as we will keep the references between childs, and parents.
166
+
* it is now required to define the type which will be used for the subItems. This can be an implementation or `ISubItem`. We now require this, as we will keep the references between children, and parents.
167
167
* this allows more optimizations, and many additional usecases
168
168
* New `ISubItem` interface added
169
-
* items serving as subitems, have to implement this.
169
+
* items serving as subItems, have to implement this.
170
170
* New `AbstractExpandableItem` added, which combines `IExpandable` and `ISubItem` with an `AbstractItem` to simplify your life
171
171
* A new `SubItemUtil` was introduced which simplifies some use cases when working with expandable / collapsing lists
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
# FastAdapter
2
2
3
3
The FastAdapter is here to simplify creating adapters for RecyclerViews. Don't worry about the adapter anymore. Just write the logic for how your view/item should look like, and you are done.
4
-
It's blazingly fast, minimizing the code you need to write, and is easy to extend.
4
+
It's blazing fast, minimizing the code you need to write, and is easy to extend.
5
5
6
6
-------
7
7
@@ -48,7 +48,7 @@ It's blazingly fast, minimizing the code you need to write, and is easy to exten
0 commit comments