That is awesome. Thank you so much. I don't have to use getPosition at
all. So whether it was a long touch or a trackball long click,
info.position is all I need.
Cheers!
Greg Hedin
On Aug 13, 10:43 pm, Romain Guy romain...@google.com wrote:
@Override
public boolean onContextItemSelected(MenuItem item) {
final AdapterView.AdapterContextMenuInfo info =
(AdapterView.AdapterContextMenuInfo) item.getMenuInfo();
// Use the info object to get the position, targetView, etc.
}
On Thu, Aug 13, 2009 at 1:29 PM, Greg Hedingreghe...@gmail.com wrote:
Hi,
I have a ListView that is registered to a ContextView. In touch mode, how do
I get the position of the ListView item that was long clicked from
onContextItemSelected method? If this is not possible, is there an event
handler I need to override? Should I create a class scope variable if that
is the case?
Thanks,
Greg Hedin
--
Romain Guy
Android framework engineer
romain...@android.com
Note: please don't send private questions to me, as I don't have time
to provide private support. All such questions should be posted on
public forums, where I and others can see and answer them
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---