当前位置: 首页>>代码示例>>Java>>正文


Java TransitionFactory类代码示例

本文整理汇总了Java中com.bumptech.glide.request.transition.TransitionFactory的典型用法代码示例。如果您正苦于以下问题:Java TransitionFactory类的具体用法?Java TransitionFactory怎么用?Java TransitionFactory使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


TransitionFactory类属于com.bumptech.glide.request.transition包,在下文中一共展示了TransitionFactory类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: obtain

import com.bumptech.glide.request.transition.TransitionFactory; //导入依赖的package包/类
public static <R> SingleRequest<R> obtain(
    GlideContext glideContext,
    Object model,
    Class<R> transcodeClass,
    RequestOptions requestOptions,
    int overrideWidth,
    int overrideHeight,
    Priority priority,
    Target<R> target,
    RequestListener<R> requestListener,
    RequestCoordinator requestCoordinator,
    Engine engine,
    TransitionFactory<? super R> animationFactory) {
  @SuppressWarnings("unchecked") SingleRequest<R> request =
      (SingleRequest<R>) POOL.acquire();
  if (request == null) {
    request = new SingleRequest<>();
  }
  request.init(
      glideContext,
      model,
      transcodeClass,
      requestOptions,
      overrideWidth,
      overrideHeight,
      priority,
      target,
      requestListener,
      requestCoordinator,
      engine,
      animationFactory);
  return request;
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:34,代码来源:SingleRequest.java

示例2: init

import com.bumptech.glide.request.transition.TransitionFactory; //导入依赖的package包/类
private void init(
    GlideContext glideContext,
    Object model,
    Class<R> transcodeClass,
    RequestOptions requestOptions,
    int overrideWidth,
    int overrideHeight,
    Priority priority,
    Target<R> target,
    RequestListener<R> requestListener,
    RequestCoordinator requestCoordinator,
    Engine engine,
    TransitionFactory<? super R> animationFactory) {
  this.glideContext = glideContext;
  this.model = model;
  this.transcodeClass = transcodeClass;
  this.requestOptions = requestOptions;
  this.overrideWidth = overrideWidth;
  this.overrideHeight = overrideHeight;
  this.priority = priority;
  this.target = target;
  this.requestListener = requestListener;
  this.requestCoordinator = requestCoordinator;
  this.engine = engine;
  this.animationFactory = animationFactory;
  status = Status.PENDING;
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:28,代码来源:SingleRequest.java

示例3: obtain

import com.bumptech.glide.request.transition.TransitionFactory; //导入依赖的package包/类
public static <R> SingleRequest<R> obtain(
    Context context,
    GlideContext glideContext,
    Object model,
    Class<R> transcodeClass,
    RequestOptions requestOptions,
    int overrideWidth,
    int overrideHeight,
    Priority priority,
    Target<R> target,
    RequestListener<R> targetListener,
    RequestListener<R> requestListener,
    RequestCoordinator requestCoordinator,
    Engine engine,
    TransitionFactory<? super R> animationFactory) {
  @SuppressWarnings("unchecked") SingleRequest<R> request =
      (SingleRequest<R>) POOL.acquire();
  if (request == null) {
    request = new SingleRequest<>();
  }
  request.init(
      context,
      glideContext,
      model,
      transcodeClass,
      requestOptions,
      overrideWidth,
      overrideHeight,
      priority,
      target,
      targetListener,
      requestListener,
      requestCoordinator,
      engine,
      animationFactory);
  return request;
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:38,代码来源:SingleRequest.java

示例4: init

import com.bumptech.glide.request.transition.TransitionFactory; //导入依赖的package包/类
private void init(
    Context context,
    GlideContext glideContext,
    Object model,
    Class<R> transcodeClass,
    RequestOptions requestOptions,
    int overrideWidth,
    int overrideHeight,
    Priority priority,
    Target<R> target,
    RequestListener<R> targetListener,
    RequestListener<R> requestListener,
    RequestCoordinator requestCoordinator,
    Engine engine,
    TransitionFactory<? super R> animationFactory) {
  this.context = context;
  this.glideContext = glideContext;
  this.model = model;
  this.transcodeClass = transcodeClass;
  this.requestOptions = requestOptions;
  this.overrideWidth = overrideWidth;
  this.overrideHeight = overrideHeight;
  this.priority = priority;
  this.target = target;
  this.targetListener = targetListener;
  this.requestListener = requestListener;
  this.requestCoordinator = requestCoordinator;
  this.engine = engine;
  this.animationFactory = animationFactory;
  status = Status.PENDING;
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:32,代码来源:SingleRequest.java

示例5: transitionUsing

import com.bumptech.glide.request.transition.TransitionFactory; //导入依赖的package包/类
/**
 * Enables a any Drawable based animation to run on Bitmaps as well.
 */
public BitmapTransitionOptions transitionUsing(
    TransitionFactory<Drawable> drawableCrossFadeFactory) {
  return transition(new BitmapTransitionFactory(drawableCrossFadeFactory));
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:8,代码来源:BitmapTransitionOptions.java

示例6: transition

import com.bumptech.glide.request.transition.TransitionFactory; //导入依赖的package包/类
public final CHILD transition(TransitionFactory<? super TranscodeType> transitionFactory) {
  this.transitionFactory = Preconditions.checkNotNull(transitionFactory);
  return self();
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:5,代码来源:TransitionOptions.java

示例7: getTransitionFactory

import com.bumptech.glide.request.transition.TransitionFactory; //导入依赖的package包/类
final TransitionFactory<? super TranscodeType> getTransitionFactory() {
  return transitionFactory;
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:4,代码来源:TransitionOptions.java

示例8: withWrapped

import com.bumptech.glide.request.transition.TransitionFactory; //导入依赖的package包/类
/**
 * Returns a {@link BitmapTransitionOptions} object that enables a any animation
 * that is possible on drawables.
 *
 * @see #transitionUsing(TransitionFactory)
 */
public static BitmapTransitionOptions withWrapped(
    TransitionFactory<Drawable> drawableCrossFadeFactory) {
  return new BitmapTransitionOptions().transitionUsing(drawableCrossFadeFactory);
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:11,代码来源:BitmapTransitionOptions.java

示例9: with

import com.bumptech.glide.request.transition.TransitionFactory; //导入依赖的package包/类
/**
 * Returns a {@link BitmapTransitionOptions} object that uses the given transition factory.
 *
 * @see com.bumptech.glide.GenericTransitionOptions#with(TransitionFactory)
 */
public static BitmapTransitionOptions with(
    TransitionFactory<Bitmap> transitionFactory) {
  return new BitmapTransitionOptions().transition(transitionFactory);
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:10,代码来源:BitmapTransitionOptions.java

示例10: with

import com.bumptech.glide.request.transition.TransitionFactory; //导入依赖的package包/类
/**
 * Returns a {@link DrawableTransitionOptions} object that uses the given transition factory.
 *
 * @see com.bumptech.glide.GenericTransitionOptions#with(TransitionFactory)
 */
public static DrawableTransitionOptions with(
    TransitionFactory<Drawable> transitionFactory) {
  return new DrawableTransitionOptions().transition(transitionFactory);
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:10,代码来源:DrawableTransitionOptions.java

示例11: with

import com.bumptech.glide.request.transition.TransitionFactory; //导入依赖的package包/类
/**
 * Returns a typed {@link GenericTransitionOptions} object that uses the given transition factory.
 *
 * @see GenericTransitionOptions#transition(TransitionFactory)
 */
public static <TranscodeType> GenericTransitionOptions<TranscodeType> with(
    TransitionFactory<? super TranscodeType> transitionFactory) {
  return new GenericTransitionOptions<TranscodeType>().transition(transitionFactory);
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:10,代码来源:GenericTransitionOptions.java

示例12: transition

import com.bumptech.glide.request.transition.TransitionFactory; //导入依赖的package包/类
/**
 * Uses the given {@link TransitionFactory} to build a
 * {@link com.bumptech.glide.request.transition.Transition} for each request started with these
 * {@code TransitionOptions}.
 *
 * @return This request builder.
 */
public final CHILD transition(TransitionFactory<? super TranscodeType> transitionFactory) {
  this.transitionFactory = Preconditions.checkNotNull(transitionFactory);
  return self();
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:12,代码来源:TransitionOptions.java


注:本文中的com.bumptech.glide.request.transition.TransitionFactory类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。