Skip to content

Releases: dingyi222666/TreeView

v1.3.1

15 Sep 07:41
5cdc4ca
Compare
Choose a tag to compare
v1.3.1 Pre-release
Pre-release

This version fix bugs that existed in the previous version.

New Features

  1. Add withExpandable parameter to TreeView#refresh

Bugs fixed

  1. Deselect other node when single selecting one (only on signle selection mode

v1.3.0

23 Aug 09:59
35c427f
Compare
Choose a tag to compare
v1.3.0 Pre-release
Pre-release

This is a major release.

New Features

  1. New API for drag and drop nodes. you need to apply the view effect in bindView by yourself.
  2. Add resolveNode to AbstractTree. You can use this method to get node quickly.
  3. Add onRefresh to TreeNodeEventListener. 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

21 Apr 11:10
6b1bb5d
Compare
Choose a tag to compare
v1.2.1 Pre-release
Pre-release

This version fix a major bug that existed in the previous version.

Bugs fixed

  1. incorrect traversal of node ids lead to incorrect order of nodes displayed in TreeView

v1.2.0

21 Apr 10:39
266a420
Compare
Choose a tag to compare
v1.2.0 Pre-release
Pre-release

This is a major release.

New Features

  1. 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.
  2. 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

  1. Improved the features about node ordering.

    As LinkedHashSet is a Set sorted by order when added, we use LinkedHashSet instead of HashSet 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

  1. Add an example of using TreeView to load a list of local files to the demo app.

v1.1.0

31 Jan 16:56
50f4f79
Compare
Choose a tag to compare
v1.1.0 Pre-release
Pre-release

This is a major release.

New Features

  1. New API for fast build tree data. It is based on the kotlin dsl.
  2. New API for expand and collapse node.

Bugs fixed

  1. No refresh of node display state when using the collapse and expand node api.

Improvments

  1. Remove guava dependency. It is too large for this library. Now use HackerMadCat/Multimap for the Multimap implementation.
  2. A better implementation of TreeNodeGenerator, now you don't need to compare old and new nodes. Just implement fetchNodeChildData and createNode.
  3. TreeViewBinder now implement DiffUtil.ItemCallback by default, you don't need to implement it.

v1.0.4

14 Jan 21:04
8b743ff
Compare
Choose a tag to compare
v1.0.4 Pre-release
Pre-release

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

  1. Fix TreeView refresh problem (no always full refresh)

New Features

  1. Horizontal scroll support and improvement (#1 Thanks to @Rosemoe for improving)
  2. Abstract the structure of the tree, now you can customise the tree implementation yourself (See here)