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 focus being lost.
I fixed this specific problem by overriding the adapter so that it always used the same instance of the child view when editing. (I'm not sure why the internal recycling didn't seem to be doing this already though...) This might be enough for your situation, however, I'm still left with the component receiving the focus but not displaying as focused. That's the subject of my other thread. Just a few thoughts... Peter. -----Original Message----- From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of John B. Hansen Sent: Thursday, 16 April 2009 6:27 AM To: Android Developers Subject: [android-developers] How to keep focus highlight on ExpandableList group.... I'm using an ExpandableListActivity and notice that whenever I select a group item (to expand or collapse it), it highlights briefly and then quickly un-highlights. For my application, I want the group items to remain highlighted. I've tried requestFocus() and several other things but nothing is working. Anyone know how to keep a selected group item (after expand or collapse) highlighted and focused? Any help appreciated. jh --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---