我有一个 getView() 的 Android Gallery ImageAdapter 实现,如下所示:
public View getView(int arg0, View arg1, ViewGroup arg2) {
String strURL = "http://app1.exactdev.co.za/android/celebs/celeb" + (arg0+1) + ".jpg";
Bitmap bm = RemoteBitMapHelper.getRemoteBitMap(strURL); //synchronous request
ImageView i = new ImageView(ctx);
i.setImageBitmap(bm);
return i;
}
如何让 getView 异步完成其工作?