Reputation: 41
Is there any possible way to perform single tap to start another activity on image view and implement pinch zoom on the same image view, I did both independently.
My problem is I don't know if it is possible to integrate them since they both use the event .ACTION_DOWN
Any help will be appreciated.
Upvotes: 0
Views: 355
Reputation: 86958
You need to use GestureDetectors, they make these distinctions for you:
onSingleTapConfirmed()
.Upvotes: 1
Reputation: 2513
You can use onDoubleTap instead of single Tap:
@Override
public boolean onDoubleTap(MotionEvent e)
{
//open dialog with your image and zoom it
{
Upvotes: 0