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);
精彩评论