title: Android, how to change image-view item of list-view dynamically?
body: <p>I have a list. Each row includes an Image at left and two text views on right.
  Based on server flag my application opens system media player or open another activity to show news detail.</p>
  
  <p>In my adapter I want to add another image on top my video images (not news images). So, in  XML file of Row I have another image View that its visibility is set to "Invisible" and I want to set it to "Visible" for each row which is video.</p>
  
  <p>getView() method is like this:</p>
  
  <pre><code>@Override
      public View getView(int position, View convertView, ViewGroup parent) {
          ViewHolder holder;        
  
              if (convertView == null) {
                  convertView     = myInflater.inflate(R.layout.list_news_adapter, null);
                  holder          = new ViewHolder();
                  holder.ivIcon   = (ImageView)   convertView.findViewById(R.id.list_news_icon);
                  holder.ivPlay   = (ImageView)   convertView.findViewById(R.id.list_news_PlayIcon);
                  holder.tvTitle  = (TextView)    convertView.findViewById(R.id.list_news_title);
                  holder.tvDate   = (TextView)    convertView.findViewById(R.id.list_news_date);
  
                  convertView.setTag(holder);
              } else {
                  holder = (ViewHolder) convertView.getTag();
              }
  
              holder.tvTitle.setText(mLatestNews.getTitle().get(position));
              holder.tvDate.setText(localTime.get(position));
  
              if(mLatestNews.getType().get(position).equalsIgnoreCase("VIDEO"))
                  holder.ivPlay.setVisibility(View.VISIBLE);
  
              // Load and display image
              String imageUrl = (mLatestNews.getImageLink().get(position));
              imageUrl = imageUrl.trim().replaceAll(" ", "%20");
              imageLoader.displayImage(imageUrl, holder.ivIcon, options);
  
              return convertView;
      }
  
      static class ViewHolder {
          ImageView ivIcon;
          ImageView ivPlay;
          TextView tvTitle;
          TextView tvDate;
      }
  </code></pre>
  
  <p>Normally first four items of list are video and rest are news. When I run the appllication, not only 4 first items, even second image will be activated (set to visible) for some news items. </p>
  
  <p>correct result is like this image:
  <img src="https://i.stack.imgur.com/cTPU1.png" alt="enter image description here"></p>
  
  <p>but after scroll of list, second image (white triangle) adds to news items. like this image:
  <img src="https://i.stack.imgur.com/ijkBV.png" alt="enter image description here"></p>
  
  <p>I have no idea why it happens. any suggestion would be appreciated. </p>