开发者

How to set first child in Expandable list view always selected

hii all, please tell me how to set first开发者_StackOverflow社区 child in expandable list view always selected.. Is there any property in Expandable list view ?


you could try listView.expandGroup(0); but you would have to check if that group exists first.


You can use this method

setSelectedChild(int groupPosition, int childPosition, boolean shouldExpandGroup)

of ExpandableListView


You can use this method

setItemChecked(position_you_want, true);

Example

stockFilter_expandableListView.setItemChecked(1, true);
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜