Piasy / BigImageViewer

Big image viewer supporting pan and zoom, with very little memory usage and full featured image loading choices. Powered by Subsampling Scale Image View, Fresco, Glide, and Picasso. Even with gif and webp support! 🍻
MIT License
3.98k stars 402 forks source link

can i load image from drawable ? #136

Closed 89hnim closed 5 years ago

89hnim commented 5 years ago

i used this func to get uri from resource but when i add this uri to biv it fail, any help? please public Uri getUriToResource(@NonNull Context context, @AnyRes int resId) throws Resources.NotFoundException { /* Return a Resources instance for your application's package. / Resources res = context.getResources(); Uri resUri = Uri.parse(ContentResolver.SCHEME_ANDROID_RESOURCE + "://" + res.getResourcePackageName(resId)

Piasy commented 5 years ago

Please try to reproduce it at demo app, and do some debug. PR is welcome!