Tabnine Logo
DrawableImageViewTarget.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
com.bumptech.glide.request.target.DrawableImageViewTarget
constructor

Best Java code snippets using com.bumptech.glide.request.target.DrawableImageViewTarget.<init> (Showing top 5 results out of 315)

origin: bumptech/glide

 @NonNull
 @SuppressWarnings("unchecked")
 public <Z> ViewTarget<ImageView, Z> buildTarget(@NonNull ImageView view,
   @NonNull Class<Z> clazz) {
  if (Bitmap.class.equals(clazz)) {
   return (ViewTarget<ImageView, Z>) new BitmapImageViewTarget(view);
  } else if (Drawable.class.isAssignableFrom(clazz)) {
   return (ViewTarget<ImageView, Z>) new DrawableImageViewTarget(view);
  } else {
   throw new IllegalArgumentException(
     "Unhandled class: " + clazz + ", try .as*(Class).transcode(ResourceTranscoder)");
  }
 }
}
origin: bumptech/glide

public void loadOnMainThread(
  final RequestBuilder<Drawable> builder, ImageView imageView) {
 loadOnMainThread(builder, new DrawableImageViewTarget(imageView));
}
origin: bumptech/glide

public void loadUntilFirstFinish(
  final RequestBuilder<Drawable> builder, ImageView imageView) {
 loadUntilFirstFinish(builder, new DrawableImageViewTarget(imageView));
}
origin: guolindev/giffun

  @SuppressWarnings("unchecked")
  public <Z> Target<Z> buildTarget(ImageView view, Class<Z> clazz) {
    if (GlideDrawable.class.isAssignableFrom(clazz)) {
      return (Target<Z>) new GlideDrawableImageViewTarget(view);
    } else if (Bitmap.class.equals(clazz)) {
      return (Target<Z>) new BitmapImageViewTarget(view);
    } else if (Drawable.class.isAssignableFrom(clazz)) {
      return (Target<Z>) new DrawableImageViewTarget(view);
    } else {
      throw new IllegalArgumentException("Unhandled class: " + clazz
          + ", try .as*(Class).transcode(ResourceTranscoder)");
    }
  }
}
origin: mozilla-tw/Rocket

 @SuppressWarnings("unchecked")
 public <Z> Target<Z> buildTarget(ImageView view, Class<Z> clazz) {
  if (Bitmap.class.equals(clazz)) {
   return (Target<Z>) new BitmapImageViewTarget(view);
  } else if (Drawable.class.isAssignableFrom(clazz)) {
   return (Target<Z>) new DrawableImageViewTarget(view);
  } else {
   throw new IllegalArgumentException(
     "Unhandled class: " + clazz + ", try .as*(Class).transcode(ResourceTranscoder)");
  }
 }
}
com.bumptech.glide.request.targetDrawableImageViewTarget<init>

Popular methods of DrawableImageViewTarget

  • onLoadFailed
  • onLoadStarted
  • onResourceReady

Popular in Java

  • Running tasks concurrently on multiple threads
  • getSystemService (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • onRequestPermissionsResult (Fragment)
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Github Copilot alternatives
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