/**
* @see GlideOptions#disallowHardwareConfig()
*/
@CheckResult
public GlideRequest<TranscodeType> disallowHardwareConfig() {
if (getMutableOptions() instanceof GlideOptions) {
this.requestOptions = ((GlideOptions) getMutableOptions()).disallowHardwareConfig();
} else {
this.requestOptions = new GlideOptions().apply(this.requestOptions).disallowHardwareConfig();
}
return this;
}
java类android.support.annotation.CheckResult的实例源码
GlideRequest.java 文件源码
项目:GitHub
阅读 29
收藏 0
点赞 0
评论 0
GlideRequest.java 文件源码
项目:GitHub
阅读 33
收藏 0
点赞 0
评论 0
/**
* @see GlideOptions#optionalCircleCrop()
*/
@CheckResult
public GlideRequest<TranscodeType> optionalCircleCrop() {
if (getMutableOptions() instanceof GlideOptions) {
this.requestOptions = ((GlideOptions) getMutableOptions()).optionalCircleCrop();
} else {
this.requestOptions = new GlideOptions().apply(this.requestOptions).optionalCircleCrop();
}
return this;
}
GlideRequest.java 文件源码
项目:GitHub
阅读 30
收藏 0
点赞 0
评论 0
/**
* @see GlideOptions#fallback(int)
*/
@CheckResult
public GlideRequest<TranscodeType> fallback(@DrawableRes int arg0) {
if (getMutableOptions() instanceof GlideOptions) {
this.requestOptions = ((GlideOptions) getMutableOptions()).fallback(arg0);
} else {
this.requestOptions = new GlideOptions().apply(this.requestOptions).fallback(arg0);
}
return this;
}
GlideRequest.java 文件源码
项目:GitHub
阅读 27
收藏 0
点赞 0
评论 0
/**
* @see GlideOptions#sizeMultiplier(float)
*/
@CheckResult
public GlideRequest<TranscodeType> sizeMultiplier(@FloatRange(from = 0.0, to = 1.0) float arg0) {
if (getMutableOptions() instanceof GlideOptions) {
this.requestOptions = ((GlideOptions) getMutableOptions()).sizeMultiplier(arg0);
} else {
this.requestOptions = new GlideOptions().apply(this.requestOptions).sizeMultiplier(arg0);
}
return this;
}
GlideRequest.java 文件源码
项目:GitHub
阅读 31
收藏 0
点赞 0
评论 0
/**
* @see GlideOptions#encodeQuality(int)
*/
@CheckResult
public GlideRequest<TranscodeType> encodeQuality(@IntRange(from = 0, to = 100) int arg0) {
if (getMutableOptions() instanceof GlideOptions) {
this.requestOptions = ((GlideOptions) getMutableOptions()).encodeQuality(arg0);
} else {
this.requestOptions = new GlideOptions().apply(this.requestOptions).encodeQuality(arg0);
}
return this;
}
ITopicsStore.java 文件源码
项目:Phoenix-for-VK
阅读 30
收藏 0
点赞 0
评论 0
@CheckResult
Completable attachPoll(int accountId, int ownerId, int topicId, PollEntity pollDbo);
GlideOptions.java 文件源码
项目:GitHub
阅读 37
收藏 0
点赞 0
评论 0
@Override
@CheckResult
public final GlideOptions transform(@NonNull Transformation<Bitmap> arg0) {
return (GlideOptions) super.transform(arg0);
}
GlideOptions.java 文件源码
项目:GitHub
阅读 44
收藏 0
点赞 0
评论 0
@Override
@CheckResult
public final GlideOptions dontTransform() {
return (GlideOptions) super.dontTransform();
}
Toasty.java 文件源码
项目:Toasty
阅读 30
收藏 0
点赞 0
评论 0
@CheckResult
public static Toast warning(@NonNull Context context, @NonNull CharSequence message) {
return warning(context, message, Toast.LENGTH_SHORT, true);
}
ToastUtil.java 文件源码
项目:Utils
阅读 29
收藏 0
点赞 0
评论 0
@CheckResult
public static Toast error(@NonNull Context context, @NonNull String message, int duration) {
return error(context, message, duration, true);
}