I have an ExpandableListView with 5 groups and each group has its children (Child). I changed the background color of some kids, however when I use the scroll mess all the lines, painting everything. This happens because of the listView's recycle, when I'm using a simple listView I override the getViewType
and getViewTypeCount
methods and solve my problem. In expandable, they have methods getChildType
and getChildTypeCount
, but it is not working. Has anyone worked with these two methods in expandable and can give a help? Thank you in advance.