开发者

How to set first child in Expandable list view always selected

开发者 https://www.devze.com 2023-03-05 05:40 出处:网络
hii all, please tell me how to set first开发者_StackOverflow社区 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

精彩评论

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