android - TouchImageView Is not Showing Image After Downloading form Volley -


<com.example.util.touchimageview     android:id="@+id/imageviewrc"     android:layout_width="match_parent"     android:layout_height="450dp"     android:layout_alignparenttop="true"     android:layout_centerhorizontal="true"     android:padding="2dp"     android:layout_marginright="3dp"     android:src="@drawable/placeholder_background"     android:scaletype="fitxy" /> 

below code wiring up:

private void setimagewithpicaso(string imageurl) {     if (!(imageurl == null)) {         picasso.with(getactivity()).load(imageurl).into(imageview, new callback() {             @override             public void onsuccess() {                 spinner.setvisibility(view.gone);             }              @override             public void onerror() {                 spinner.setvisibility(view.gone);                 applog.showtoastmessage(getactivity(), "rate card loading failed!");              }         });     } else {         spinner.setvisibility(view.gone);         applog.showtoastmessage(getactivity(), "rate card loading failed!");     } } 

the download happening , , when start pinching zoom works appreciate time.

picasso.with(getactivity()).load(urltoload).placeholder(r.drawable.placeholder_background).into(imageview, new callback() modify above code , put pic rename placeholder_background , put in drawables


Comments

Popular posts from this blog

Load Balancing in Bluemix using custom domain and DNS SRV records -

oracle - pls-00402 alias required in select list of cursor to avoid duplicate column names -

python - Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] error -