niugao / RecyclerListTreeView

The fastest android Tree View based on RecyclerView
73 stars 15 forks source link

适配器里面的下标pos如何准确获取啊 #6

Open ZHLhenry opened 5 years ago

ZHLhenry commented 5 years ago

列表的父类pos和 某一个父类下面的子类或孙子类pos.

niugao commented 5 years ago

pos有两个概念,一个是其底层在list中的位置,我叫做plane index,另一种是在树中的位置,我叫做index,但是我只提供了获取planeIndex的方法,比如ListTree::getNodePlaneIndex(TreeNode node),你要获取的是哪种?

ZHLhenry commented 5 years ago

应该是在树中的位置. 类似于ExpandableListView里面的int groupPosition, int childPosition

niugao commented 5 years ago

好的,这个需要增加api,我搞一下

ZHLhenry commented 5 years ago

感谢啦.👌

niugao commented 5 years ago

搞定啦,请看0.1.8的更新日志。

ZHLhenry commented 5 years ago

OK------------------ 原始邮件 ------------------ 发件人: "niugao"notifications@github.com 发送时间: 2019年10月31日(星期四) 上午9:32 收件人: "niugao/RecyclerListTreeView"RecyclerListTreeView@noreply.github.com; 抄送: "Henry"524934786@qq.com;"Author"author@noreply.github.com; 主题: Re: [niugao/RecyclerListTreeView] 适配器里面的下标pos如何准确获取啊 (#6)

搞定啦,请看0.1.8的更新日志。

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.