Code example for GestureDetector

Methods: setIsLongpressEnabled

0
    init(context);
  } 
 
  private void init(final Context context) {
    super.setFactory(this);
    gestureDetector = new GestureDetector(context, this);
    gestureDetector.setIsLongpressEnabled(true);
  } 
 
  @Override 
  public void setFactory(final ViewFactory factory) { }
 
  public void setNavigationListener(final OnNavigationListener l) { this.nListener = l; }
 
  /** 
   * @param progressBar the progressBar to set 
   */ 
  public void setProgressBar(final ProgressBar progressBar) { this.progressBar = progressBar; }
 
  /** 
   * @param gallery the gallery to set