开发者

How do I navigate from child View to it's group View in ExpandableListView on Android?

开发者 https://www.devze.com 2023-01-17 06:37 出处:网络
Each child in my ExpandableListView builds a context menu. In my OnCreateContextMenuListener() I need to access some of the TextViews that are displaying data associated with the child\'s group. Expan

Each child in my ExpandableListView builds a context menu. In my OnCreateContextMenuListener() I need to access some of the TextViews that are displaying data associated with the child's group. ExpandableListView.getPackedPositionGroup() tells me which group开发者_运维知识库 is the child's parent, but I've been unable to figure out how to use this to get a handle to the group View that the TextViews live on. What API am I not seeing?

Or is there a better way to get handles to the Views associated with a child's parent group?

0

精彩评论

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