android - Picasso placeholder image animation -


i trying load image imageview using picasso. code given below:

picasso.with(this)        .load(imageurl)        .placeholder(drawable1)        .error(drawable1)        .into(imageview) 

now here while picasso waiting download complete, imageview goes blank. prevent want fade out current image drawable , load image present in url. there way this?

i think picass has done you, placehoder drawable used shown when image being loaded, , error drawable shown when image load failed.

if want thing can use target following:

new target() {   @override public void onbitmaploaded(bitmap bitmap, picasso.loadedfrom from) {     imageview2.setimagebitmap(bitmap);    }     @override public void onbitmapfailed(drawable errordrawable) {     }     @override public void onprepareload(drawable placeholderdrawable) {     } } 

Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -