Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Custom callback in AndroidQuery

$
0
0

I'm very excited with the AndroidQuery library for loading images in a listview. (Very fast loading!)

Link to Xamarin.Android project: https://github.com/Kiranbhat2005/AQueryXamarin

Link to original project: https://code.google.com/p/android-query/wiki/ImageLoading

Only now I want the use custom callbacks in the request but I can't get it to working.

How can I do something like the BitmapAjaxCallback override like in the android sample below?

aq.id(R.id.image1).image(imageUrl, true, true, 0, 0, new BitmapAjaxCallback(){

    @Override
    public void callback(String url, ImageView iv, Bitmap bm, AjaxStatus status){    
            iv.setImageBitmap(bm);

            //do something to the bitmap
            iv.setColorFilter(tint, PorterDuff.Mode.SRC_ATOP);
    }
});

Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>