[android-developers] Re: Long click on list activity item

2012-05-20 Thread Kaptkaos
Ah, this was exactly what I needed. Thanks for the tip! -- 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-developer

[android-developers] Re: Long click on list activity item

2009-03-31 Thread matthias
Hi, On Feb 22, 9:53 pm, an...@akapost.com wrote: > ... > The standard onListItemClick() will still fire as well; my best guess > there is to keep a suppression boolean around, which isn't pretty. > Any other thoughts on this? just return true from onItemLongClick(); this means you have consumed

[android-developers] Re: Long click on list activity item

2009-02-22 Thread anon8
Try looking at: AdapterView.onItemLongClick() ListView implements AdapterView, so you'll have access to that juicy method, which will pass the id of the item clicked as well as the item's view the same as with onListItemClick(). {begin code} // ListActivity has a ListView, which you can get wi

[android-developers] Re: Long click on list activity item

2009-01-03 Thread tranbinh.b...@gmail.com
Hi, Maybe this can help: @Override public void onCreateContextMenu(ContextMenu menu, View view, ContextMenuInfo menuInfo) { AdapterView.AdapterContextMenuInfo info; try { info = (AdapterView.AdapterContextMenuInfo) menuInfo; } catch (ClassCastExceptio