In the getChildView () method, you can determine if this group has any children. If not, you can return an empty view.
At the same time, you will need to configure other related methods, for example, getChildrenCount () , getChild () , etc.
source share