Load image from SD card using Glide

后端 未结 4 995
执念已碎
执念已碎 2020-12-06 11:27

I\'ve been trying and searching for an answer for the past 5 hours. I\'m storing image from google plus to local folder and using Glide library to load the image into imagev

4条回答
  •  旧时难觅i
    2020-12-06 11:56

    I am using this version

    implementation 'com.github.bumptech.glide:glide:4.8.0'

    You have to pass image uri like this given below:

     Glide.with(this)
                    .load(Uri.fromFile(new File(imageStoragePath)))
                    .apply(new RequestOptions().override(100, 100))
                    .into(imageView);
    

提交回复
热议问题