Obsolete
Status Update
Comments
ch...@gmail.com <ch...@gmail.com> #2
This is a problem for me too, I have a ListView of things where many of the items don't have images. This leaves me no clean way to display a default image, I have to make a bogus network request for every last one.
ch...@gmail.com <ch...@gmail.com> #3
[Comment deleted]
ch...@gmail.com <ch...@gmail.com> #4
Looks like my problem was fixed a couple of months ago with the addition of setDefaultImageOrNull() in place of that setImageBitmap() line in the issue description.
I don't see that it would let one directly set the image bitmap, though.
I don't see that it would let one directly set the image bitmap, though.
eb...@gmail.com <eb...@gmail.com> #5
Still the issue, I had to comment setImageBitmap(null); in the method.
br...@gmail.com <br...@gmail.com> #6
im having the same problem. is there any work around for this.
Description
we have a small usecase here where a user should be able to edit a image which was loaded from a server.
I really would like to use Volley's NetworkImageView, but i found the ImageView to be completely blank if i try to set a image source via the ImageView API.
This code is executed in every NetworkIMageView.onLayout(...) call:
Notice that this will effectively disallow any images not loaded from a valid URL.
I'm also missing a possibility to set a loader or preview image to the NetworkImageView. The current default/error images are only shown AFTER a request has been done.
As a workaround I thought about adding a second ImageView for everything non-URL related images and displaying it on top of a FrameLayout while the NetworkImage is loading ... but i don't like the idea of adding artifical views to the layout. I could also implement the ImageRequest /response handling myself, but then i would duplicate alot of stuff the NetworkImageView class is already doing.
Greetings,
Mario