as title suggest I want to check whether images are loading from cache or not.
I've done something like this but couldn't succeeded.
Picasso.with(getApplicationContext()) .load(data.get(position).get("product_image")) .into(viewHolder.imgViewIcon, new Callback() { @Override public void onSuccess() { viewHolder.imgViewIcon.setVisibility(View.VISIBLE); if (Picasso.LoadedFrom.NETWORK != null) YoYo.with(Techniques.ZoomIn).duration(1200) .playOn(viewHolder.imgViewIcon); viewHolder.placeholder.setVisibility(View.GONE); } @Override public void onError() { } });
Please anyone have batter option then tell me. Thanks.