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
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
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
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
4 matches
Mail list logo