TreeView

An Android TreeView with RecyclerView

APACHE-2.0 License

Stars
95
Committers
3

Bot releases are hidden (Show)

TreeView - v1.3.1 Latest Release

Published by dingyi222666 about 1 year ago

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
TreeView - v1.3.0

Published by dingyi222666 about 1 year ago

This is a major release.

New Features

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

TreeView - v1.2.1

Published by dingyi222666 over 1 year ago

This version fixes 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
TreeView - v1.2.0

Published by dingyi222666 over 1 year ago

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.
TreeView - v1.1.0

Published by dingyi222666 over 1 year ago

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.
TreeView - v1.0.4

Published by dingyi222666 almost 2 years ago

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)
Package Rankings
Top 36.27% on Repo1.maven.org
Badges
Extracted from project README
CI Build Status GitHub license