owant / ThinkMap

在 Android 上绘制思维导图控件,让思维更简单。
Apache License 2.0
346 stars 82 forks source link

example code该怎么用? #2

Closed Thorlph closed 7 years ago

Thorlph commented 7 years ago

请问一下最后两行的代码 binding.testTreeView.setTreeLayoutManager(new RightTreeLayoutManager(dx, dy, mHeight)); binding.testTreeView.setTreeModel(tree); binding是什么对象来的? 是指需要绑定的view吗?

owant commented 7 years ago

DataBinding 。use findViewById(R.id.tree_view) resplace the "binding"