title: Doesn't show the image on imageview in horizontal listview
body: <p>I tried to implement the Horizontal ListView. In this activity, I have one ImageView and one Horizontal ListView. If I select any image from this horizontal ListView, that image will show above the Horizontal ListView. By default, the first image is showing on that ImageView. Here the image is not showing on ImageView:</p>
  
  <pre><code>String  Imagefile ="http://www.example.com/wp-content/uploads/2014/10/Screenshot_2014-10-07-11-52-52-1412678971.png";
  selectedImage = (ImageView) findViewById(R.id.imageView1);
  imageLoader=new ImageLoader(DetailPage.this.getApplicationContext());
  imageLoader.DisplayImage(Imagefile, selectedImage);
  </code></pre>
  
  <p>Now the image is showing well on ImageView. But if I tried to set dynamic image, the image is not showing on the ImageView.</p>
  
  <pre><code> GalleryImageAdapter adapter = new GalleryImageAdapter(DetailPage.this, categories);
   gallery.setAdapter(adapter);
   String  Imagefile =categories[0].toString();
   selectedImage = (ImageView) findViewById(R.id.imageView1);
   //imageLoader=new ImageLoader(DetailPage.this.getApplicationContext());
   //imageLoader.DisplayImage(Imagefile, selectedImage);
   gallery.setOnItemClickListener(new OnItemClickListener() {
   public void onItemClick(AdapterView&lt;?&gt; parent, View v, int position, long id) {
   System.out.println("Selected-Image"+" "+categories[position].toString());
    //imageLoader=new ImageLoader(DetailImage.this.getApplicationContext());
    // imageLoader.DisplayImage(categories[position].toString(), selectedImage);
  
              }
          });  
          }
        class GalleryImageAdapter extends ArrayAdapter&lt;String&gt;
       {
       private final Context context;
        private final String[] categories;
        public ImageLoader imageLoader; 
        public GalleryImageAdapter(Context context, String[] categories) {
          super(context, R.layout.rowlayout, categories);
          this.context = context;
          this.categories = categories;
          imageLoader=new ImageLoader(context.getApplicationContext());
        }
  
        @Override
        public View getView(int position, View convertView, ViewGroup parent) {
          LayoutInflater inflater = (LayoutInflater) context
              .getSystemService(Context.LAYOUT_INFLATER_SERVICE);
          View i = inflater.inflate(R.layout.rowlayout, parent, false);
          ImageView imageView = (ImageView) i.findViewById(R.id.icon);
         // imageLoader=new ImageLoader(context.getApplicationContext());
          imageLoader.DisplayImage(categories[position], imageView);
          System.out.println("Image"+" "+categories[position]);
          return i;
      }
     }       
  </code></pre>
  
  <p>But I am getting the url on logcat:</p>
  
  <pre><code>10-07 16:46:35.559: I/System.out(1105): default-Image "http://www.example.com/wp-content/uploads/2014/10/Screenshot_2014-10-07-11-52-52-1412678971.png"
  10-07 17:22:50.009: I/System.out(3607): Image http://example.com/wp-content/uploads/2014/10/Screenshot_2014-10-07-11-52-52-1412678971.png
  </code></pre>
  
  <p>What is wrong in my code ?</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>Yes, I have changed my code like :</p>
  
  <pre><code>      GalleryImageAdapter adapter = new GalleryImageAdapter(DetailImage.this, R.layout.rowlayout,categories);
  
        class GalleryImageAdapter extends ArrayAdapter&lt;String&gt;
        {
        private final Context context;
        private final String[] categories;
        public ImageLoader imageLoader;
        private int resourceId; 
        public GalleryImageAdapter(Context context, int resourceId,String[] categories) {
          super(context, R.layout.rowlayout, categories);
          this.context = context;
          this.resourceId = resourceId;
          this.categories = categories;
          imageLoader=new ImageLoader(context.getApplicationContext());
        }
  
        @Override
        public View getView(int position, View convertView, ViewGroup parent) {
          LayoutInflater inflater = (LayoutInflater) context
              .getSystemService(Context.LAYOUT_INFLATER_SERVICE);
          View i = inflater.inflate(resourceId, parent, false);
  </code></pre>
  
  <p>But still now doesn't showing the image on ImageView. Please verify it.</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>I need exact output with dynamic data like below tutorial :</p>
  
  <p><a href="http://www.learn-android-easily.com/2013/07/android-gallery-view-example.html" rel="nofollow">http://www.learn-android-easily.com/2013/07/android-gallery-view-example.html</a></p>