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

Allow passing 'null' as ImageView (or loadImage(...)) #51

Closed
ghost opened this issue Aug 10, 2012 · 10 comments
Closed

Allow passing 'null' as ImageView (or loadImage(...)) #51

ghost opened this issue Aug 10, 2012 · 10 comments
Labels

Comments

@ghost
Copy link

ghost commented Aug 10, 2012

Having to create a dummy ImageView every time I'm creating a callback to load a bitmap into a custom widget is kinda annoying. Could we get an option to pass null instead?

@nostra13
Copy link
Owner

Some important information is got from incoming ImageView: scaleType, width, height, maxWidth, maxHeight. It's needed to define which minimum Bitmap size is required for displaying. And depending on these parameters original image is decoded and scaled to defined size. Also some other logic is associated with ImageView.
Actually just downloading of images is not main case of this library. Why do you need for it?

@ghost
Copy link
Author

ghost commented Aug 10, 2012

Mainly for setting action bar icon to a remote image.

@nostra13
Copy link
Owner

I'll think about adding new method to ImageLoader (e.g. loadImage(...))

@ghost
Copy link
Author

ghost commented Aug 14, 2012

That would be great. Thanks!

@joelg
Copy link

joelg commented Aug 22, 2012

Out of interest, is there a good way to set the action bar icon to a remote image right now? Just trying to figure that out at the moment :)

@ghost
Copy link
Author

ghost commented Aug 22, 2012

getActionBar().setIcon() in SimpleImageLoadingListener#onLoadingComplete

@guyrosin
Copy link

guyrosin commented Sep 7, 2012

It's also necessary for setting notification icons. Would love to have it!

@antslava
Copy link

Yep, it would be nice to add some method like loadImage(String someUrl, ImageLoadingListener listener);

@nostra13
Copy link
Owner

Question: do you need Bitmap as a result or image File?

@guyrosin
Copy link

Bitmap would be great (I think for both cases). Thanks!

nostra13 added a commit that referenced this issue Sep 29, 2012
Added FakeBitmapDisplayer.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants