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). Will keep reviewing this.

jh


On Wed, Apr 15, 2009 at 1:26 PM, John B. Hansen <jnahan...@gmail.com> wrote:

> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to