Tabnine Logo
SubsamplingScaleImageView.setOnImageEventListener
Code IndexAdd Tabnine to your IDE (free)

How to use
setOnImageEventListener
method
in
com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView

Best Java code snippets using com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView.setOnImageEventListener (Showing top 4 results out of 315)

origin: Piasy/BigImageViewer

public void setOptimizeDisplay(boolean optimizeDisplay) {
  if (mSSIV == null) {
    return;
  }
  mOptimizeDisplay = optimizeDisplay;
  if (mOptimizeDisplay) {
    mDisplayOptimizeListener = new DisplayOptimizeListener(mSSIV);
    mSSIV.setOnImageEventListener(mDisplayOptimizeListener);
  } else {
    mDisplayOptimizeListener = null;
    mSSIV.setOnImageEventListener(null);
  }
}
origin: kollerlukas/Camera-Roll-Android-App

imageView.setOnImageEventListener(
    new SubsamplingScaleImageView.DefaultOnImageEventListener() {
      @Override
origin: kollerlukas/Camera-Roll-Android-App

public static void bindSubsamplingImageView(SubsamplingScaleImageView imageView, Photo photo,
                      SubsamplingScaleImageView.DefaultOnImageEventListener onImageEventListener) {
  imageView.recycle();
  ImageViewState imageViewState = null;
  if (photo.getImageViewSavedState() != null) {
    imageViewState = (ImageViewState) photo.getImageViewSavedState();
    photo.putImageViewSavedState(null);
  }
  imageView.setImage(
      ImageSource.uri(photo.getUri(imageView.getContext())),
      imageViewState);
  if (onImageEventListener != null) {
    imageView.setOnImageEventListener(onImageEventListener);
  }
}
origin: layerhq/Atlas-Android

mImageView.setOnImageEventListener(this);
com.davemorrissey.labs.subscaleviewSubsamplingScaleImageViewsetOnImageEventListener

Javadoc

Add a listener allowing notification of load and error events.

Popular methods of SubsamplingScaleImageView

  • setImage
    Set the image source from a bitmap, resource, asset, file or other URI, starting with a given orient
  • setDoubleTapZoomScale
    Set the scale the image will zoom in to when double tapped. This also the scale point where a double
  • setMaxScale
    Set the maximum scale allowed. A value of 1 means 1:1 pixels at maximum scale. You may wish to set t
  • setMinimumDpi
    This is a screen density aware alternative to #setMaxScale(float); it allows you to express the maxi
  • setScaleAndCenter
    Externally change the scale and translation of the source image. This may be used with getCenter() a
  • getWidth
  • setDoubleTapZoomDpi
    A density aware alternative to #setDoubleTapZoomScale(float); this allows you to express the scale t
  • setMinimumScaleType
    Set the minimum scale type. See static fields. Normally #SCALE_TYPE_CENTER_INSIDE is best, for image
  • setMinimumTileDpi
    By default, image tiles are at least as high resolution as the screen. For a retina screen this may
  • setPanEnabled
    Enable or disable pan gesture detection. Disabling pan causes the image to be centered.
  • setZoomEnabled
    Enable or disable zoom gesture detection. Disabling zoom locks the the current scale.
  • <init>
  • setZoomEnabled,
  • <init>,
  • getCenter,
  • getContext,
  • getHeight,
  • getOrientation,
  • getScale,
  • isReady,
  • onDraw,
  • onImageLoaded

Popular in Java

  • Running tasks concurrently on multiple threads
  • onCreateOptionsMenu (Activity)
  • addToBackStack (FragmentTransaction)
  • findViewById (Activity)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • JPanel (javax.swing)
  • 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