There is a custom callback example on AQuery wiki:
String imageUrl = "http://www.vikispot.com/z/images/vikispot/android-w.png";
final int tint = 0x77AA0000;
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);
}
});
If I change the bitmap in the callback will the changes be saved to the cache? And is it possible to use BitmapAjaxCallback only if the bitmap was not in the cache?
In short, I want to edit downloaded images and store it in the cache for use in listview.