[android-developers] Re: How to keep focus highlight on ExpandableList group....

2009-04-16 Thread Peter Carpenter
I'm struggling with a similar issue myself at the moment. I traced mine down to the fact that modifying the child component caused it to call RequestLayout(). This in turn, caused the parent to relayout which unfortunately meant removing and replacing the component with a new one - thus the

[android-developers] Re: How to keep focus highlight on ExpandableList group....

2009-04-16 Thread Jeff Sharkey
This sounds odd. When you say select a group item do you mean expanding it using the dpad or touch? When the list goes into touch mode there isn't a notion of visible selection. j On Wed, Apr 15, 2009 at 11:02 PM, Peter Carpenter peter.carpen...@skytechnologies.com wrote: I'm struggling

[android-developers] Re: How to keep focus highlight on ExpandableList group....

2009-04-16 Thread John Hansen
I found a partial answer to this. In general, you can use the following to select and highlight a group item: ExpandableListView.setSelectedGroup(groupPosition); But, it doesn't work in the OnGroup callback for setOnGroupClickListener (which is really where I need it to work).