I am using Expandable Lists to create a list of collapsible tables and have several questions. I'm using a ResourceCursorTreeAdapter to store the data which works pretty well. Each group in the expandable list is a title for the table. I also added a table header which I try setting the visibility to GONE when the group node is collapsed and to VISIBLE when the group node is expanded. Each child node is a row in the table. I wrote a very simple custom layout so that each cell in the row would be one third of the width of the screen. So, here are my questions:
1. The OnGroupExpandListener has the onGroupExpand(groupPosition) method. In this method, I want to get the view for the corresponding group and set the sub component (the table header) to visible. I tried to get this view using: expandableList.getChildAt(groupPosition) I've tried several other things as well but with no luck. How do I get the corresponding view given the group position? 2. When the database changes, I call resultsCursorTreeAdapter.notifyDataSetChanged(true) The expandable list however does not get updated in many cases until I leave the activity and come back. How do I refresh the expandable list without making the user leave the activity and come back? 3. Am I making this too complicated? Is there an easier way to do what I'm trying to do? The ResourceCursorTreeAdapter takes a reference to the collapsed group view and expanded group view in it's constructor. However, it appears to ignore the expanded group view parameter. Jay --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

