I have a class that extends ListActivity which calls getListView
().setOnCreateContextMenuListener(this); and overrides
onCreateContextMenu() and onContextItemSelected.

If I use the D-Pad to select and press and hold an item in the list,
the item background changes from black to orange and then gradually
changes to white before the context menu comes up.

If I use the touch screen to press and hold an item, the item
background stays black. What do I have to do to get the same behavior
with the touch screen that I get with the D-Pad?

I've tried setting FocusableInTouchMode to true via resource and code
for every view and I've tried requestFocus() in an onTouch() handler.
Nothing seems to work.

Any ideas? Thanks.

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

Reply via email to