Android鬼点子-LoadingImageView | GreendaMi'Blog
LoadingImageView
进度为0~100之间。0的时候是完全黑白。
12Glide.with(this).load(url).asBitmap().into(mImg);mImg.setProgress(p);//设置进度 注意添加:asBitmap(),或者手动设置bitmap。只能使用ImageView默认的ScaleType。
1234567891011allprojects { repositories { ... maven { url 'https://jitpack.io' } } }dependencies { compile 'com.github.GreendaMi:LoadingImageView:1.0' } 完整源码:Github
求点心!求关注!
...阅读全文
进度为0~100之间。0的时候是完全黑白。
12Glide.with(this).load(url).asBitmap().into(mImg);mImg.setProgress(p);//设置进度 注意添加:asBitmap(),或者手动设置bitmap。只能使用ImageView默认的ScaleType。
1234567891011allprojects { repositories { ... maven { url 'https://jitpack.io' } } }dependencies { compile 'com.github.GreendaMi:LoadingImageView:1.0' } 完整源码:Github
求点心!求关注!
...阅读全文