title: Android Image disappear in RecyclerView after Scrolling list up and down?
body: <p>I have a RecyclerView to display list data but after Scrolling up and down, a image load from url using Volley disappear and appear again. I know that the list will recycle item after read this <a href="https://stackoverflow.com/questions/11945563/how-listviews-recycling-mechanism-works">How ListView's recycling mechanism works</a>. Here is my Adapter, where did I wrong? </p>
  
  <pre><code>public class PostAdapter extends RecyclerView.Adapter&lt;PostAdapter.ViewHolder&gt; {
  
  private ArrayList&lt;Post&gt; posts;
  private Context context;
  private ImageLoader imageLoader;
  
  public PostAdapter(ArrayList&lt;Post&gt; posts, Context context) {
      this.posts = posts;
      this.context = context;
      imageLoader = MySingleton.getInstance(context).getImageLoader();
  }
  
  @Override
  public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
      View view = LayoutInflater.from(parent.getContext())
              .inflate(R.layout.item_post, parent, false);
      return new ViewHolder(view);
  }
  
  @Override
  public void onBindViewHolder(ViewHolder holder, int position) {
      holder.name.setText(posts.get(position).getName());
      holder.timestamp.setText(posts.get(position).getTimestamp());
      holder.status.setText(posts.get(position).getStatus());
      holder.avatar.setImageUrl(Constants.URL_IMAGE + posts.get(position).getAvatar(), imageLoader);
      if(!posts.get(position).getImage().equals("")) {
          holder.image.setVisibility(View.VISIBLE);
          holder.image.setImageUrl(Constants.URL_IMAGE + posts.get(position).getImage(), imageLoader);
      } else {
          holder.image.setVisibility(View.GONE);
      }
  }
  
  @Override
  public int getItemCount() {
      return posts.size();
  }
  
  public static class ViewHolder extends RecyclerView.ViewHolder {
      NetworkImageView image, avatar;
      TextView status, timestamp, name;
  
      public ViewHolder(View itemView) {
          super(itemView);
          avatar = (NetworkImageView) itemView.findViewById(R.id.profilePic);
          image = (NetworkImageView) itemView.findViewById(R.id.feedImage1);
          status = (TextView) itemView.findViewById(R.id.txtStatusMsg);
          name = (TextView) itemView.findViewById(R.id.name);
          timestamp = (TextView) itemView.findViewById(R.id.timestamp);
      }
  }}
  </code></pre>