Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
vibhorB opened this issue Mar 24, 2014 · 0 comments
Open

Comments

@vibhorB
Copy link

vibhorB commented Mar 24, 2014

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant