title: Android Glide Image is not showing on the first screen
body: <p>I am using Android glide to load remote images, but here i met a strange problem which image on the first screen not showing but while i scroll down and scroll up again, those images become showing normally.here is the screen shot:
  <a href="https://i.stack.imgur.com/jPDSs.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jPDSs.png" alt="enter image description here"></a>
  I have also googled such question and find a <a href="https://github.com/bumptech/glide/issues/1026" rel="nofollow noreferrer">duplicate</a>,and after trying such steps it still doesn't work, and you may need to check code, here is it:</p>
  
  <pre><code>public class SiteAdapter extends ArrayAdapter&lt;Site&gt; {
  private int resourceId;
  private List&lt;Site&gt; sites = null;
  private Context context;
  private SiteHolder siteHolder;
  /**
   * @param context the current activity context, we can get it using the super ArrayAdapter constructor
   * @param resource the site_layout.xml file
   * @param objects the collection to store all the sites
   */
  public SiteAdapter(Context context, int resource, List&lt;Site&gt; objects) {
      super(context, resource, objects);
      this.context = context;
      this.resourceId = resource;
      this.sites = objects;
  }
  
  @Override
  public Site getItem(int position) {
      return sites.get(position);
  }
  
  @Override
  public int getCount() {
      return sites.size();
  }
  
  //get the viewpage which inflate by site_layout.xml file
  @Override
  public View getView(int position, View convertView, ViewGroup parent) {
      Site site = getItem(position);
      View view = convertView;
      siteHolder = new SiteHolder();
      if (view == null) {
          LayoutInflater vi = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
          view = vi.inflate(resourceId, null);
      }
      //this place we need to get the whole widget in site_layout.xml file
      siteHolder.image = (ImageView) view.findViewById(R.id.thumbnail);
      siteHolder.address = (TextView)view.findViewById(R.id.address);
      siteHolder.mallName = (TextView) view.findViewById(R.id.name);
      siteHolder.distance = (TextView) view.findViewById(R.id.distance);
      siteHolder.address.setText(site.getAddress());
      //set name of the view
      siteHolder.mallName.setText(site.getName());
      //set price of the view
      //set distance of the view
      siteHolder.distance.setText("&lt;" + site.getDistance() + "m");
      //set image
      ImageTask task = new ImageTask();
      task.execute("http://xxxx/springmvc/getFirst/" + site.getName());
      return view;
  }
  
  //检测adapater中加载网络资源是否可行?结论:不可行
  public String getImgUrl(String str){
      String data = "";
      try {
          URL u = new URL(str);
          HttpURLConnection conn = (HttpURLConnection) u.openConnection();
          InputStream is = conn.getInputStream();
          BufferedReader br = new BufferedReader(new InputStreamReader(is));
          String content = "";
          StringBuffer sb = new StringBuffer();
          while((content = br.readLine()) != null){
              sb.append(content);
          }
          data = sb.toString();
          br.close();
          is.close();
      } catch (MalformedURLException e) {
          e.printStackTrace();
      } catch (IOException e) {
          e.printStackTrace();
      }
      return data;
  }
  class ImageTask extends AsyncTask&lt;String, Void, String&gt;{
  
      @Override
      protected String doInBackground(String... str) {
          String data = "";
          data = getImgUrl(str[0]);
          return data;
      }
  
      @Override
      protected void onPostExecute(String s) {
          Glide.with(context)
              .load(s)
              .fitCenter()
              .into(siteHolder.image);
      }
  }
  
  class SiteHolder{
      ImageView image;
      TextView mallName;
      TextView address;
      TextView distance;
      }
  }
  </code></pre>
  
  <p>if there anybody who met such scene before, thank you in advance.</p>