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

Image Placeholder + BitmapAjaxCallback #168

Open
GoogleCodeExporter opened this issue Mar 7, 2016 · 3 comments
Open

Image Placeholder + BitmapAjaxCallback #168

GoogleCodeExporter opened this issue Mar 7, 2016 · 3 comments

Comments

@GoogleCodeExporter
Copy link

I need to load a image with url, using a placeholder before load the image and 
the BitmapAjaxCallback to add more ui views above the image. So i use the 
method:

aq.id(R.id.v_image_back).image(myPlaceHolder)
aq.id(R.id.v_image_back).image(url, true, true, photoSize, 0, new 
BitmapAjaxCallback() {
            @Override
            public void callback(String url, ImageView iv, Bitmap bm, AjaxStatus status) {
                if (status.getCode() > 199  && status.getCode() <= 299) {
                    // My Additional Code (if success)
                }
            }
        });

The problem is that my placeholder is replaced before the URL call. Also, the 
status returns 200 even if i close the network data or wi-fi.

Is any way to keep the placeholder until the image is loaded and parse 
correctly the status code?

Original issue reported on code.google.com by mspap...@gmail.com on 28 Nov 2013 at 8:48

@GoogleCodeExporter
Copy link
Author

Hi, did you solve this issue?

Original comment by paxa...@gmail.com on 22 Mar 2014 at 8:56

@GoogleCodeExporter
Copy link
Author

Did anyone solve this?

Original comment by mygreymatter on 24 Oct 2014 at 5:21

@GoogleCodeExporter
Copy link
Author

Unfortunately, i haven't managed to find a solution

Original comment by mspap...@gmail.com on 24 Oct 2014 at 7:17

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

No branches or pull requests

1 participant