Git Product home page Git Product logo

Comments (15)

dingyi222666 avatar dingyi222666 commented on May 14, 2024

No, I’m implementing it. It’s an experimental feature.

from treeview.

dingyi222666 avatar dingyi222666 commented on May 14, 2024

3938314

from treeview.

zhengyu-android avatar zhengyu-android commented on May 14, 2024

Thank you,Is there a separate interface for refreshing nodes?

from treeview.

dingyi222666 avatar dingyi222666 commented on May 14, 2024

Thank you,Is there a separate interface for refreshing nodes?

What does your separate interface mean?

from treeview.

zhengyu-android avatar zhengyu-android commented on May 14, 2024

private fun createTree(): Tree {
return Tree.createTree().apply {
generator = ItemTreeNodeGenerator(item)
initTree()
}
}

1、怎么动态添加与移除子节点
2、如何单独只刷新子节点

from treeview.

dingyi222666 avatar dingyi222666 commented on May 14, 2024

private fun createTree(): Tree { return Tree.createTree().apply { generator = ItemTreeNodeGenerator(item) initTree() } }

1、怎么动态添加与移除子节点 2、如何单独只刷新子节点

第一点可能比较困难,你需要对真实数据做操作后刷新。(当然也可以使用 DataSource 相关类,但是那个比较麻烦)

第二点的话你可以看这里,传的第二个参数就是子节点。

from treeview.

dingyi222666 avatar dingyi222666 commented on May 14, 2024

已经支持了拖动节点,故此 issue 关闭。但仍然可以继续讨论。

from treeview.

zhengyu-android avatar zhengyu-android commented on May 14, 2024

对真实数据做操作后刷新,如果数据量非常大会卡顿吗

from treeview.

dingyi222666 avatar dingyi222666 commented on May 14, 2024

默认是只刷新展开了的节点(及其往后一级),不会一次加载全部数据(除非你的全部节点都展开了)。

数据量看你的情况,这个实际上是看 RecyclerView 实际能承载的 view 数量了。

from treeview.

zhengyu-android avatar zhengyu-android commented on May 14, 2024

lifecycleScope.launch {
binding.treeView.refresh()
}
使用这个刷新吗

from treeview.

dingyi222666 avatar dingyi222666 commented on May 14, 2024

lifecycleScope.launch { binding.treeView.refresh() } 使用这个刷新吗

from treeview.

zhengyu-android avatar zhengyu-android commented on May 14, 2024

好的 谢谢你

from treeview.

zhengyu-android avatar zhengyu-android commented on May 14, 2024

1、如何重写点击子节点的事件
2、FATAL EXCEPTION: pool-6-thread-2
Process: com.iimt.robotarm, PID: 8582
java.util.ConcurrentModificationException
at java.util.ArrayList$Itr.next(ArrayList.java:860)
at java.util.AbstractList.hashCode(AbstractList.java:566)
at com.iimt.robotarm.result.TreeNodeData.hashCode(Unknown Source:81)
at io.github.dingyi222666.view.treeview.TreeNode.hashCode(treeNodes.kt:108)

添加很多数据的话,会这样报错

from treeview.

dingyi222666 avatar dingyi222666 commented on May 14, 2024
  1. 重写 TreeNodeEventListener#onClick
  2. 麻烦详细提供一下相关错误,日志,复现代码。并新开一个 issue 描述该问题

from treeview.

zhengyu-android avatar zhengyu-android commented on May 14, 2024

怎么拖动子节点并更新数据呢?

from treeview.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.