Skip to content

Instantly share code, notes, and snippets.

@srix55
srix55 / DoubleClickListener.java
Last active October 16, 2023 11:43
Simple double-click listener that can be used like the way OnClickListener is used on a view in Android
import android.os.SystemClock;
import android.view.View;
import android.view.View.OnClickListener;
/**
* A simple double-click listener
* Usage:
* // Scenario 1: Setting double click listener for myView
* myView.setOnClickListener(new DoubleClickListener() {
*