本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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));
}
示例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();
}
示例7: getTransitionFactory
import com.bumptech.glide.request.transition.TransitionFactory; //导入依赖的package包/类
final TransitionFactory<? super TranscodeType> getTransitionFactory() {
return transitionFactory;
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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();
}