Releases: dingyi222666/TreeView
v1.3.3
This version fix bugs that existed in the previous version.
Bug Fixes
- Fixed an issue where nodes were incorrectly deselected when setting selection mode
v1.3.2
This version addresses bugs present in the previous release and introduces several improvements.
New Features
- Made the TreeNode#selected property publicly accessible
- Enhanced node dragging functionality with improved behavior and performance
Bug Fixes
- Fixed an issue where horizontal scrolling would incorrectly trigger item long-click eventsde.
v1.3.1
This version fix bugs that existed in the previous version.
New Features
- Add
withExpandable
parameter toTreeView#refresh
Bugs fixed
- Deselect other node when single selecting one (only on signle selection mode
v1.3.0
This is a major release.
New Features
- New API for drag and drop nodes. you need to apply the view effect in bindView by yourself.
- Add
resolveNode
toAbstractTree
. You can use this method to get node quickly. - Add
onRefresh
toTreeNodeEventListener
. You can listen to the state of the TreeView refresh, which can be used to display progressbar, etc.
Bug fixed
No bug fix.
v1.2.1
This version fix a major bug that existed in the previous version.
Bugs fixed
- incorrect traversal of node ids lead to incorrect order of nodes displayed in TreeView
v1.2.0
This is a major release.
New Features
- New API for select or deselect nodes. Support configuration of single or multi selection mode. you need to apply the view effect after selection in bindView by yourself.
- Add path property in TreeNode to better compare whether TreeNode is equal or not (subsequent methods like resolveNodeByPath may be added)
Bug fixed
No bug fix.
Improvments
-
Improved the features about node ordering.
As
LinkedHashSet
is a Set sorted by order when added, we useLinkedHashSet
instead ofHashSet
to store node ids and it is easy to do sorting of nodes (by order when added) if the data list returned by the node generator is also a LinkedHashSet. Check out our example to learn more.
Other
- Add an example of using TreeView to load a list of local files to the demo app.
v1.1.0
This is a major release.
New Features
- New API for fast build tree data. It is based on the kotlin dsl.
- New API for expand and collapse node.
Bugs fixed
- No refresh of node display state when using the collapse and expand node api.
Improvments
- Remove
guava
dependency. It is too large for this library. Now use HackerMadCat/Multimap for the Multimap implementation. - A better implementation of TreeNodeGenerator, now you don't need to compare old and new nodes. Just implement
fetchNodeChildData
andcreateNode
. - TreeViewBinder now implement DiffUtil.ItemCallback by default, you don't need to implement it.
v1.0.4
This is the first release of the project on github!
But it's already v1.0.4. Because I didn't keep an update log for the previous versions.
The following updates are all that have been available since v1.0.
Bugs Fixed
- Fix TreeView refresh problem (no always full refresh)