Android自定义对话框url图像未显示?

Android自定义对话框url图像未显示?,android,dialog,imageview,image-loading,Android,Dialog,Imageview,Image Loading,这是我的代码,我试图在ImageView中显示URL图像,但它不起作用 霉菌代码: CustomDialog alert = new CustomDialog(this, R.style.myCoolDialog); alert.setContentView(R.layout.item_details); ImageLoader imageLoader=new ImageLoader(this);

这是我的代码,我试图在ImageView中显示URL图像,但它不起作用

霉菌代码:

        CustomDialog alert = new CustomDialog(this,  R.style.myCoolDialog);
        alert.setContentView(R.layout.item_details);                        
        ImageLoader imageLoader=new ImageLoader(this);

        ImageView image1=(ImageView)alert.findViewById(R.id.details_image1);
        ImageView image2=(ImageView)alert.findViewById(R.id.details_image2);
        ImageView image3=(ImageView)alert.findViewById(R.id.details_image3);

        image1.setTag(listFilltered.get(position).getAttr4());
        image2.setTag(listFilltered.get(position).getAttr12());
        image3.setTag(listFilltered.get(position).getAttr3());

        imageLoader.DisplayImage(listFilltered.get(position).getAttr4(), image1);
        imageLoader.DisplayImage(listFilltered.get(position).getAttr12(), image2);
        imageLoader.DisplayImage(listFilltered.get(position).getAttr3(), image3);

alert.show();
在自定义对话框中:

public class CustomDialog extends Dialog {

    public CustomDialog(Context context, int theme) {
        super(context, theme);
     }
   }
我做的一切都很好。它叫图像加载器,我在那里得到了URL


下载没问题。但图像不能显示

在新的ImageLoader中传递上下文这一点;使用getApplicationContext而不是此。尝试在该图像视图中显示静态。首先检查它是否正常工作?静态图像正常工作。。从URL图像下载不起作用。。如果我在新的ImageLoader中获取的ApplicationContext也不工作,则此;使用getApplicationContext而不是此。尝试在该图像视图中显示静态。首先检查它是否正常工作?静态图像正常工作。。从URL图像下载不起作用。。如果getApplicationContext也不工作