Android线程模型和AsyncTask(4)

new CanvasImageTaskCall(){                            @Override                           public boolean handleMessage(Message msg) {                                    switch (msg.what) {                                    case 0:                                            Log.i("test""图片加载失败");                                            break;                                    case 1:                                            Log.i("test""图片加载成功");                                            break;                                    default:                                            break;                                    }                                    saveButton.setTextColor(Color.WHITE);                                    saveButton.setClickable(true);                                    bitmap = (Bitmap) imageView.getTag();                                    return super.handleMessage(msg);                            }                    }.execute(img);  

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wwfjsw.html