Code example for View.OnLongClickListener

Methods: onLongClick

0
			this.isClickEnabled = false;
			if (getView().isLongClickable() 
					&& !TouchManager.this.scaleGestureDetector.isInProgress()
					&& !TouchManager.this.moveGestureDetector.isInProgress()) {
				if (this.onLongClickListener!=null) {
					b = this.onLongClickListener.onLongClick(v);
				} 
				if (!b) {
					PointerEventAndroid e = TouchManager.this.moveGestureDetector.lastPointerEvent;
					if (e!=null) {
						e.unconsume();
						e.setWhen(System.currentTimeMillis());
						getView().onLongClick(e);
						b = e.isConsumed();
					} 
				} 
			} 
			return b;
		} 
 
Contextual code suggestions in your IDE  Get Codota for Java