All Versions
21
Latest Version
Avg Release Cycle
17 days
Latest Release
920 days ago
Changelog History
Page 2
Changelog History
Page 2
-
v5.0.1 Changes
May 09, 2020๐ Fixes / Changes
- Suggestion to listen to the drag start event (#886)
- Thanks @RobbWatershed
- add default method for interface so current implementation don't need to change
- open up all methods in the ViewHolder of the FastAdapter.kt
- FIX #890 - โก๏ธ update to gradle build tools 4.1.0-alpha09
- โก๏ธ update to gradle 6.4
- Suggestion to listen to the drag start event (#886)
-
v5.0.0 Changes
March 08, 2020๐ Fixes / Changes
- Equal to v5.0.0-b01
Dependencies
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.x.y"implementation "androidx.appcompat:appcompat:1.x.y"implementation "androidx.recyclerview:recyclerview:1.x.y"
-
v5.0.0-b01 Changes
February 28, 2020๐ Fixes
- ๐ Rename parameters in AbstractBindingItem to match the type
- Thanks @bdumeljic
- โก๏ธ update gradle
- โก๏ธ update gradle build tools
- โก๏ธ update dependencies
- ๐ Rename parameters in AbstractBindingItem to match the type
-
v5.0.0-a08 Changes
February 21, 2020๐ Fixes
- โ add convenient abstract ModelAbstractBindingItem.kt
- eliminate to register types and factories in the type factory
- register automatically when resolving the actual type ids instead
- simplify sample code
-
v5.0.0-a07 Changes
February 21, 2020๐ Fixes
- โ remove the type from the factory
- resolve #871 - ๐ reverse deprecation of
AbstractItem
for convenient reasons - eliminate unnecessary duplicated class
- ๐ rename
AbstractBindingItemVHFactory
toBaseBindingItemVHFactory
- eliminate layoutRes from interface where it is no longer needed, especially when using viewBinding
- FIX #874 - even further simplify the view binding case, by providing an AbstractItem.kt which does not require a custom ViewHolder
- introduce extension functions to simplify hooking up click event hooks to binding items
- FIX #872
- simplify AbstractItem.kt by basing on top of the BaseItem.kt
- ๐ฐ adjust all payloads to be immutable
MutableList<Any>
->List<Any>
- FIX #813
- NOTE it requires a full clean, will compile though with MD and AboutLibraries
โก๏ธ Dependency Updates
- โก๏ธ update to latest android iconics library
- ๐ update to compatible materialDrawer release using the new FastAdapter v8.0.0-a06
- โก๏ธ update to new compatible AboutLibraries v8.0.0-b05
- โก๏ธ update to stable material 1.0.0
Sample
- โ remove unnecessary layout, fix overlapping statusbar in SortActivity.kt
Migration
- ๐ฐ Note that the
bindView(holder: VH, payloads: List<Any>)
will use aList
now instead aMutableList
- โ remove the type from the factory
-
v5.0.0-a06 Changes
February 15, 2020๐ Fixes
- ๐ to further migrate towards a better separation of responsibilities we have introduced a new interface which will describe the logic for creating the
ViewHolder
theIItemVHFactory
. - To complete this interface there is now a new
BaseItem
andModelBaseItem
to allow splitting item logic, and ViewHolder creation logic. - ๐ The old
AbstractItem
andModelAbstractItem
are now deprecated in favor of the newer approach - The
IItem
interface no longer contains theFactory
logic - It is still possible to implement items "the old way" by using the
AbstractItem
or by providing theIItemVHFactory
beside theIItem
interface, and also theIItemViewGenerator
if needed
Migration
OLD
If the
Item
implementation looked like:class SimpleImageItem : AbstractItem\<SimpleImageItem.ViewHolder\>() { override val type: Int get() = R.id.fastadapter\_simple\_image\_item\_id override val layoutRes: Int get() = R.layout.simple\_image\_item override fun bindView(holder: ViewHolder, payloads: MutableList\<Any\>) { ... } override fun unbindView(holder: ViewHolder) { } override fun getViewHolder(v: View): ViewHolder { return ViewHolder(v) } class ViewHolder(view: View) : RecyclerView.ViewHolder(view) { var view: FrameLayout ... } }
๐ NEW
๐จ It should be refactored to look like:
class SimpleImageItem : BaseItem\<SimpleImageItem.ViewHolder\>() { override val type: Int get() = R.id.fastadapter\_simple\_image\_item\_id override val factory: IItemVHFactory\<ViewHolder\> = SimpleImageItemFactoryoverride fun bindView(holder: ViewHolder, payloads: MutableList\<Any\>) { ... } override fun unbindView(holder: ViewHolder) { ... } class ViewHolder(view: View) : RecyclerView.ViewHolder(view) { var view: FrameLayout } }object SimpleImageItemFactory : BaseItemFactory\<SimpleImageItem.ViewHolder\>() { override val type: Int get() = R.id.fastadapter\_simple\_image\_item\_id override val layoutRes: Int get() = R.layout.simple\_image\_item override fun getViewHolder(v: View): SimpleImageItem.ViewHolder { return SimpleImageItem.ViewHolder(v) } }
- ๐ to further migrate towards a better separation of responsibilities we have introduced a new interface which will describe the logic for creating the
-
v5.0.0-a05 Changes
February 12, 2020๐ Fixes
- ๐ improve AbstractBindingItem.kt by also providing the parent
-
v5.0.0-a04 Changes
February 12, 2020๐ Fixes
- introduce new binding module which adds abstract items to simplify usage with viewbinding / databinding
- โก๏ธ update to AS 4.0.0-alpha09 for viewbinding / databinding
- โ add compileOnly dependency for viewBinding interface
- ๐ use iconItem from viewBinding in the sample app
- ๐ FIX / REGARDING #822
-
v5.0.0-a03 Changes
January 20, 2020๐ Fixes
- ModelAdapter.kt does not require peeking
- override peeking in the PagedModelAdapter.kt
- protect the peek code from overflowing
- fix #861
-
v5.0.0-a02 Changes
January 20, 2020๐ Features
- ๐จ refactor to use MaterialDrawer v8
- ๐จ refactor to use Iconcis v5
- ๐จ refactor to use AboutLibraries v8
- โ remove materialize
- ๐ Allow swipes without setting "leave-behind" drawables (Thanks @StuStirling)
๐ Fixes
- try to solve the issue of the paged list being fully loaded when asking for the selected item
- fix #861