congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
VersionedGestureDetector.newInstance
Code IndexAdd Tabnine to your IDE (free)

How to use
newInstance
method
in
com.oginotihiro.cropview.gestures.VersionedGestureDetector

Best Java code snippets using com.oginotihiro.cropview.gestures.VersionedGestureDetector.newInstance (Showing top 2 results out of 315)

origin: wangyisll/TessTwoDemo

public CropView(Context context, AttributeSet attrs, int defStyleAttr) {
  super(context, attrs, defStyleAttr);
  setScaleType(ScaleType.MATRIX);
  mDragScaleDetector = VersionedGestureDetector.newInstance(context, this);
  mGestureDetector = new GestureDetector(context, new GestureDetector.SimpleOnGestureListener());
  mGestureDetector.setOnDoubleTapListener(new DefaultOnDoubleTapListener());
  outlinePaint.setAntiAlias(true);
  outlinePaint.setColor(highlightColor);
  outlinePaint.setStyle(Paint.Style.STROKE);
  outlinePaint.setStrokeWidth(dpToPx(OUTLINE_DP));
  outsidePaint.setARGB(125, 50, 50, 50);
  ViewTreeObserver observer = getViewTreeObserver();
  if (null != observer) {
    observer.addOnGlobalLayoutListener(this);
  }
}
origin: oginotihiro/cropview

public CropView(Context context, AttributeSet attrs, int defStyleAttr) {
  super(context, attrs, defStyleAttr);
  setScaleType(ScaleType.MATRIX);
  mDragScaleDetector = VersionedGestureDetector.newInstance(context, this);
  mGestureDetector = new GestureDetector(context, new GestureDetector.SimpleOnGestureListener());
  mGestureDetector.setOnDoubleTapListener(new DefaultOnDoubleTapListener());
  outlinePaint.setAntiAlias(true);
  outlinePaint.setColor(highlightColor);
  outlinePaint.setStyle(Paint.Style.STROKE);
  outlinePaint.setStrokeWidth(dpToPx(OUTLINE_DP));
  outsidePaint.setARGB(125, 50, 50, 50);
  ViewTreeObserver observer = getViewTreeObserver();
  if (null != observer) {
    observer.addOnGlobalLayoutListener(this);
  }
}
com.oginotihiro.cropview.gesturesVersionedGestureDetectornewInstance

Popular methods of VersionedGestureDetector

    Popular in Java

    • Making http post requests using okhttp
    • startActivity (Activity)
    • setScale (BigDecimal)
    • compareTo (BigDecimal)
    • HttpServer (com.sun.net.httpserver)
      This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
    • BigInteger (java.math)
      An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
    • Selector (java.nio.channels)
      A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
    • LinkedList (java.util)
      Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
    • Stack (java.util)
      Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
    • HttpServlet (javax.servlet.http)
      Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
    • Top PhpStorm plugins
    Tabnine Logo
    • Products

      Search for Java codeSearch for JavaScript code
    • IDE Plugins

      IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Tabnine for your IDE now