loopj / android-smart-image-view

Android ImageView replacement which allows image loading from URLs or contact address book, with caching
http://loopj.com/android-smart-image-view/
1.29k stars 502 forks source link

Some images are loaded as ColorDrawable while some as BitmapDrawable #39

Open vibhorB opened 10 years ago

vibhorB commented 10 years ago

Hi, I am using smartview to create an image search app. I need to share the images using Intent, so I load the image from Url. A few images are always loaded as ColorDrawable is I do imageView.getDrawable(). It is the same code loading all thumbnails in a grid, but a few pics are always loaded as ColorDrawable, and in that case my logic fails where I try to get bitmap from that file. Why does it happens this way? Eg. from this json - https://ajax.googleapis.com/ajax/services/search/images?q=android&v=1.0&&rsz=8&imgsz=medium&start=2, the 4th object always loads as BitmapDrawable while 6th object always loads as ColorDrawable.