Glide最最基础使用方法

作者: 墨革 | 来源:发表于2016-09-13 07:56 被阅读333次

GitHub地址

compile 'com.github.bumptech.glide:glide:3.7.0' compile 'com.android.support:support-v4:19.1.0'
<strong>注意:</strong> 在使用Glide时需要添加support-v4包

加载图片:

Glide.with(mContext)
        .load(url)
        .placeholder(R.drawable.loaging)
        .crossFade()  //动画
        .into(mImageView);

扩展阅读

MrFu——Glide系列

相关文章

网友评论

    本文标题: Glide最最基础使用方法

    本文链接:https://www.haomeiwen.com/subject/fflmettx.html