Code example for View.OnLongClickListener

Methods: onLongClick

0
 
						// forward long click listener 
						@Override 
						public void onLongPress(MotionEvent e) {
							if(null != mLongClickListener) {
								mLongClickListener.onLongClick(mImageView.get());
							} 
						}}); 
 
			mGestureDetector.setOnDoubleTapListener(this);
 
			// Finally, update the UI so that we're zoomable 
			setZoomable(true); 
		} 
	} 
 
	@Override 
	public final boolean canZoom() { 
		return mZoomEnabled;
	}