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

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

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

origin: davemorrissey/subsampling-scale-image-view

setGestureDetector(getContext());
origin: davemorrissey/subsampling-scale-image-view

TypedArray typedAttr = getContext().obtainStyledAttributes(attr, styleable.SubsamplingScaleImageView);
if (typedAttr.hasValue(styleable.SubsamplingScaleImageView_assetName)) {
  String assetName = typedAttr.getString(styleable.SubsamplingScaleImageView_assetName);
origin: davemorrissey/subsampling-scale-image-view

BitmapLoadTask task = new BitmapLoadTask(this, getContext(), bitmapDecoderFactory, uri, false);
execute(task);
origin: davemorrissey/subsampling-scale-image-view

  Uri uri = previewSource.getUri();
  if (uri == null && previewSource.getResource() != null) {
    uri = Uri.parse(ContentResolver.SCHEME_ANDROID_RESOURCE + "://" + getContext().getPackageName() + "/" + previewSource.getResource());
  BitmapLoadTask task = new BitmapLoadTask(this, getContext(), bitmapDecoderFactory, uri, true);
  execute(task);
uri = imageSource.getUri();
if (uri == null && imageSource.getResource() != null) {
  uri = Uri.parse(ContentResolver.SCHEME_ANDROID_RESOURCE + "://" + getContext().getPackageName() + "/" + imageSource.getResource());
  TilesInitTask task = new TilesInitTask(this, getContext(), regionDecoderFactory, uri);
  execute(task);
} else {
  BitmapLoadTask task = new BitmapLoadTask(this, getContext(), bitmapDecoderFactory, uri, false);
  execute(task);
origin: mozilla-tw/Rocket

TypedArray typedAttr = getContext().obtainStyledAttributes(attr, styleable.SubsamplingScaleImageView);
if (typedAttr.hasValue(styleable.SubsamplingScaleImageView_assetName)) {
  String assetName = typedAttr.getString(styleable.SubsamplingScaleImageView_assetName);
origin: mozilla-tw/Rocket

setGestureDetector(getContext());
origin: kollerlukas/Camera-Roll-Android-App

= new GestureDetector(imageView.getContext(),
new GestureDetector.SimpleOnGestureListener() {
  @Override
origin: mozilla-tw/Rocket

  Uri uri = previewSource.getUri();
  if (uri == null && previewSource.getResource() != null) {
    uri = Uri.parse(ContentResolver.SCHEME_ANDROID_RESOURCE + "://" + getContext().getPackageName() + "/" + previewSource.getResource());
  BitmapLoadTask task = new BitmapLoadTask(this, getContext(), bitmapDecoderFactory, uri, true);
  execute(task);
uri = imageSource.getUri();
if (uri == null && imageSource.getResource() != null) {
  uri = Uri.parse(ContentResolver.SCHEME_ANDROID_RESOURCE + "://" + getContext().getPackageName() + "/" + imageSource.getResource());
  TilesInitTask task = new TilesInitTask(this, getContext(), regionDecoderFactory, uri);
  execute(task);
} else {
  BitmapLoadTask task = new BitmapLoadTask(this, getContext(), bitmapDecoderFactory, uri, false);
  execute(task);
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: mozilla-tw/Rocket

BitmapLoadTask task = new BitmapLoadTask(this, getContext(), bitmapDecoderFactory, uri, false);
execute(task);
com.davemorrissey.labs.subscaleviewSubsamplingScaleImageViewgetContext

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,
  • getHeight,
  • getOrientation,
  • getScale,
  • isReady,
  • onDraw,
  • onImageLoaded

Popular in Java

  • Updating database using SQL prepared statement
  • getSupportFragmentManager (FragmentActivity)
  • getResourceAsStream (ClassLoader)
  • scheduleAtFixedRate (Timer)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Best plugins for Eclipse
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