Tabnine Logo
BitmapTransitionOptions.crossFade
Code IndexAdd Tabnine to your IDE (free)

How to use
crossFade
method
in
com.bumptech.glide.load.resource.bitmap.BitmapTransitionOptions

Best Java code snippets using com.bumptech.glide.load.resource.bitmap.BitmapTransitionOptions.crossFade (Showing top 13 results out of 315)

origin: bumptech/glide

/**
 * Enables a cross fade animation between both the placeholder and the first resource and between
 * subsequent resources (if thumbnails are used).
 */
@NonNull
public BitmapTransitionOptions crossFade() {
 return crossFade(new DrawableCrossFadeFactory.Builder());
}
origin: bumptech/glide

/**
 * Returns a {@link BitmapTransitionOptions} object that enables a cross fade animation.
 *
 * @see #crossFade(DrawableCrossFadeFactory)
 */
@NonNull
public static BitmapTransitionOptions withCrossFade(
  @NonNull DrawableCrossFadeFactory drawableCrossFadeFactory) {
 return new BitmapTransitionOptions().crossFade(drawableCrossFadeFactory);
}
origin: bumptech/glide

/**
 * Enables a cross fade animation between both the placeholder and the first resource and between
 * subsequent resources (if thumbnails are used).
 *
 * @param duration The duration of the animation, see
 *     {@code DrawableCrossFadeFactory.Builder(int)}.
 * @see com.bumptech.glide.request.transition.DrawableCrossFadeFactory.Builder
 */
@NonNull
public BitmapTransitionOptions crossFade(int duration) {
 return crossFade(new DrawableCrossFadeFactory.Builder(duration));
}
origin: bumptech/glide

/**
 * Returns a {@link BitmapTransitionOptions} object that enables a cross fade animation.
 *
 * @see #crossFade()
 */
@NonNull
public static BitmapTransitionOptions withCrossFade() {
 return new BitmapTransitionOptions().crossFade();
}
origin: bumptech/glide

/**
 * Returns a {@link BitmapTransitionOptions} object that enables a cross fade animation.
 *
 * @see #crossFade(int)
 */
@NonNull
public static BitmapTransitionOptions withCrossFade(int duration) {
 return new BitmapTransitionOptions().crossFade(duration);
}
origin: bumptech/glide

/**
 * Returns a {@link BitmapTransitionOptions} object that enables a cross fade animation.
 *
 * @see #crossFade(DrawableCrossFadeFactory.Builder)
 */
@NonNull
public static BitmapTransitionOptions withCrossFade(
  @NonNull DrawableCrossFadeFactory.Builder builder) {
 return new BitmapTransitionOptions().crossFade(builder);
}
origin: mozilla-tw/Rocket

/**
 * Returns a {@link BitmapTransitionOptions} object that enables a cross fade animation.
 *
 * @see #crossFade()
 */
public static BitmapTransitionOptions withCrossFade() {
 return new BitmapTransitionOptions().crossFade();
}
origin: mozilla-tw/Rocket

/**
 * Enables a cross fade animation between both the placeholder and the first resource and between
 * subsequent resources (if thumbnails are used).
 */
public BitmapTransitionOptions crossFade() {
 return crossFade(new DrawableCrossFadeFactory.Builder());
}
origin: mozilla-tw/Rocket

/**
 * Returns a {@link BitmapTransitionOptions} object that enables a cross fade animation.
 *
 * @see #crossFade(DrawableCrossFadeFactory.Builder)
 */
public static BitmapTransitionOptions withCrossFade(
  DrawableCrossFadeFactory.Builder builder) {
 return new BitmapTransitionOptions().crossFade(builder);
}
origin: mozilla-tw/Rocket

/**
 * Returns a {@link BitmapTransitionOptions} object that enables a cross fade animation.
 *
 * @see #crossFade(DrawableCrossFadeFactory)
 */
public static BitmapTransitionOptions withCrossFade(
  DrawableCrossFadeFactory drawableCrossFadeFactory) {
 return new BitmapTransitionOptions().crossFade(drawableCrossFadeFactory);
}
origin: mozilla-tw/Rocket

/**
 * Returns a {@link BitmapTransitionOptions} object that enables a cross fade animation.
 *
 * @see #crossFade(int)
 */
public static BitmapTransitionOptions withCrossFade(int duration) {
 return new BitmapTransitionOptions().crossFade(duration);
}
origin: mozilla-tw/Rocket

/**
 * Enables a cross fade animation between both the placeholder and the first resource and between
 * subsequent resources (if thumbnails are used).
 *
 * @param duration The duration of the animation, see
 *     {@code DrawableCrossFadeFactory.Builder(int)}.
 * @see com.bumptech.glide.request.transition.DrawableCrossFadeFactory.Builder
 */
public BitmapTransitionOptions crossFade(int duration) {
 return crossFade(new DrawableCrossFadeFactory.Builder(duration));
}
origin: Lauzy/TicktockMusic

@Override
public void display(Context context, ImageConfig imageConfig) {
  RequestOptions options = getOptions(context, imageConfig);
  Object url = getPath(imageConfig);
  if (!imageConfig.isAsBitmap()) {
    RequestBuilder<Drawable> requestBuilder = Glide.with(context)
        .load(url)
        .apply(options);
    if (!imageConfig.isRound() && imageConfig.getDuration() != 0) {
      requestBuilder = requestBuilder.transition(new DrawableTransitionOptions()
          .crossFade(imageConfig.getDuration()));
    }
    requestBuilder.into(imageConfig.getImageView());
  } else {
    RequestBuilder<Bitmap> requestBuilder = Glide.with(context)
        .asBitmap()
        .load(url)
        .apply(options);
    if (!imageConfig.isRound() && imageConfig.getDuration() != 0) {
      requestBuilder = requestBuilder.transition(new BitmapTransitionOptions()
          .crossFade(imageConfig.getDuration()));
    }
    requestBuilder.into(imageConfig.getTarget());
  }
}
com.bumptech.glide.load.resource.bitmapBitmapTransitionOptionscrossFade

Javadoc

Enables a cross fade animation between both the placeholder and the first resource and between subsequent resources (if thumbnails are used).

Popular methods of BitmapTransitionOptions

  • <init>
  • transition
  • transitionUsing
    Enables a any Drawable based animation to run on Bitmaps as well.
  • withCrossFade
    Returns a BitmapTransitionOptions object that enables a cross fade animation.

Popular in Java

  • Running tasks concurrently on multiple threads
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getContentResolver (Context)
  • runOnUiThread (Activity)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Top plugins for WebStorm
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