开发者

Getting item's index from id in ExpandableListView

开发者 https://www.devze.com 2023-01-02 02:03 出处:网络
I need to get item\'s index(position) knowing its ID while using ExpandableListView. Is the开发者_JS百科re any way to do this without making complete hash id->index and searching it?

I need to get item's index(position) knowing its ID while using ExpandableListView. Is the开发者_JS百科re any way to do this without making complete hash id->index and searching it?

Thanks


getPackedPositionForChild()

and

getFlatListPosition()

On the ExpandableListView are your friends

0

精彩评论

暂无评论...
验证码 换一张
取 消