So I've been trying to use an expandablelistview as an elegant interface for my application, but I continually fail to extract the needed behavior from it. When I click a child, I can change its background to a different color, or change the text to a different color, or even change the text itself. However, when I scroll around (such that the child leaves the viewable area) or collapse/expand the group, whatever change I made frequently vanishes.
So, how do I make those kind of changes to a child and get them to stick? Thanks.
UPDATE: Overriding the ExpandableListAdapter's getChildView() method to make appropriate changes to children views turns out to work just fine (even without the adapter's notifyDataSetChanged() method). My issue was a silly state switcharoo (I had them right in onChildClick but backwards in getChildView).