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

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

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

origin: davemorrissey/subsampling-scale-image-view

public SubsamplingScaleImageView(Context context, AttributeSet attr) {
  super(context, attr);
  density = getResources().getDisplayMetrics().density;
  setMinimumDpi(160);
  setDoubleTapZoomDpi(160);
  setMinimumTileDpi(320);
origin: davemorrissey/subsampling-scale-image-view

@Override
protected void onPageChanged(int page) {
  if (page == 0) {
    view.setMinimumDpi(50);
  } else {
    view.setMaxScale(2F);
origin: mozilla-tw/Rocket

public SubsamplingScaleImageView(Context context, AttributeSet attr) {
  super(context, attr);
  density = getResources().getDisplayMetrics().density;
  setMinimumDpi(160);
  setDoubleTapZoomDpi(160);
  setGestureDetector(context);
origin: kollerlukas/Camera-Roll-Android-App

imageView.setMinimumDpi(80);
origin: layerhq/Atlas-Android

mImageView.setZoomEnabled(true);
mImageView.setDoubleTapZoomDpi(160);
mImageView.setMinimumDpi(80);
mImageView.setBitmapDecoderClass(MessagePartDecoder.class);
mImageView.setRegionDecoderClass(MessagePartRegionDecoder.class);
com.davemorrissey.labs.subscaleviewSubsamplingScaleImageViewsetMinimumDpi

Javadoc

This is a screen density aware alternative to #setMaxScale(float); it allows you to express the maximum allowed scale in terms of the minimum pixel density. This avoids the problem of 1:1 scale still being too small on a high density screen. A sensible starting point is 160 - the default used by this view.

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
  • 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>
  • getCenter
    Returns the source point at the center of the view.
  • <init>,
  • getCenter,
  • getContext,
  • getHeight,
  • getOrientation,
  • getScale,
  • isReady,
  • onDraw,
  • onImageLoaded

Popular in Java

  • Finding current android device location
  • getExternalFilesDir (Context)
  • onRequestPermissionsResult (Fragment)
  • getApplicationContext (Context)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • JOptionPane (javax.swing)
  • JTable (javax.swing)
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Top Vim 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