Wednesday, April 9, 2014

listview imageview used to set setimageBitmap invalid


LoadImageAsyncTask task = new LoadImageAsyncTask (new LoadImageCallback () {

public void beforeImageLoad () {
holder.iv.setImageResource (R.drawable.book);

}

public void afterImageLoad (Bitmap bitmap) {
if (bitmap! = null) {
holder.iv.setImageBitmap (bitmap);
}

}
});
task.execute (book.getBookicon ());
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:

Reply:
Very silent ah
Reply:
See you have posted code execution android AsyncTask should afterImageLoad bitmap is a null value passed task.execute (book.getBookicon ()); taking doBackgroud of
Reply:
Never seen such a thread pool with asynchronous direct new one AsyncTask trilogy is complete, the feeling is not there a parameter task.execute (book.getBookicon ()) have a problem

No comments:

Post a Comment