bzcoder / easyglide Goto Github PK
View Code? Open in Web Editor NEW🐼基于Glide 4.12.0封装的 一键使用工具类。现已改为kotlin实现。支持HTTPS图片,可下载图片,可监听加载进度。包含常用变换:高斯模糊,圆角矩形,圆形,黑白,描边圆形,描边方形。
🐼基于Glide 4.12.0封装的 一键使用工具类。现已改为kotlin实现。支持HTTPS图片,可下载图片,可监听加载进度。包含常用变换:高斯模糊,圆角矩形,圆形,黑白,描边圆形,描边方形。
圆角设置RoundedCornersTransformation中传入参数DIAGONAL_FROM_TOP_LEFT 显示有问题
Glide可以加载带Header的GlideUrl,比如这样
Glide.with(context).load(
GlideUrl(
imageUrl, LazyHeaders.Builder()
.addHeader("Referer", Referer)
.addHeader("User-Agent", UserAgent)
.build()
)
)
.centerInside()
.apply(RequestOptions().diskCacheStrategy(DiskCacheStrategy.ALL))
.transition(DrawableTransitionOptions.withCrossFade(factory))
.into(imageView)
EasyGlide似乎只能loadImage Int型和String型的数据?
我尝试了使用loadImage GlideUrl.toString()和GlideUrl.toStringUrl()好像都没用
大佬,希望可以加一个获取缓存大小的方法
如题,如果进度是在recyclerview中,那需要怎么显示?
我有个iv,但想轮播一组jpg,需要获取每个图片的下载进度和下完完成的bitmap,然后iv定时setBitmap
作者你好,如果图片加载失败,比如load一个空url, 则transform会失效,比如一个圆形circleTransform,加载失败后会显示正方形的错误占位图,请问这个问题怎么解决。
在APP中加了 android:usesCleartextTraffic="true"也没用,具体是什么原因呢
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.