Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
I would try this:
on the OnGroupExpandListener expansion event, we receive the position of the expanded group
onGroupExpand(int groupPosition). We pass GroupPosition to the adapter so that in getGroupView(int groupPosition, boolean isExpanded, View convertView, ViewGroup parent) we darken everything except the passed GroupPosition
and call invalidateViews()
And in OnGroupCollapseListener we reset everything
To darken the entire area, except for this view, you need to set the view style with parameters in style.xml:
<item name="android:backgroundDimEnabled">true</item>
<item name="android:windowIsFloating">true</item>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question