Keith Wiley wrote:
> My View subclass is can be written one of two ways, I've tried both.
> One implements OnGestureListener, the other doesn't. In both cases,
> the Activity registers the view for context menus when the view is
> created and registers itself, the activity, as the context menu
> listener.
>
> In the case where OnGestureListener is *not* implemented, context
> menus work. onCreateContextMenu() and onContextItemSelected() are
> both called and the menu works as expected. In the case where
> OnGestureListener *is* implemented by the view subclass, the context
> menu processing functions in the activity are never called.
>
> Problem is, I need both. Without OnGestureListener, I don't get fling
> events. With it, I don't get context menus. I need both.
>
> Any ideas?
what do you return in OnGestureListener.onLongClick() method?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---