title: Invisible TextView's start to be visible when scrolling ListView
body: <p>I've got huge problem that I don't understand. I have got custom ListView with my own adapter. Each row in ListView has two TextViews - one is a title and the second one is invisible at start. It's going to be visible when there is something new in this item. </p>
  
  <p>In my adapter I set title for every row and set second TextView to be visible when it should be. When I run my app it's fine, but when i scroll down and up the list almost every row is changing invisible TextView to be visible! </p>
  
  <p>I don't know why, but I spaculate that this is something with <code>convertView</code>. Can anybody tell me what's going on?</p>
  
  <p>My adapter:</p>
  
  <pre><code>public class MyListAdapter extends BaseAdapter {
  
          @SuppressWarnings("unused")
          private Activity activity;
          private ArrayList&lt;String&gt; titles;
          private LayoutInflater inflater;
  
          public MyListAdapter (Activity activity, ArrayList&lt;String&gt; titles) {
              this.activity = activity;
              this.titles = titles;
              inflater = (LayoutInflater)activity.getLayoutInflater();
          }
  
          public int getCount() {
              return titles.size();
          }
  
          public Object getItem(int position) {
              return position;
          }
  
          public long getItemId(int position) {
              return position;
          }
  
          public View getView(int position, View convertView, ViewGroup parent) {
  
              View vi=convertView;
  
              if (convertView == null) {
                  vi = inflater.inflate(R.layout.wpis_list_row, null);
              }
  
              TextView title = (TextView)vi.findViewById(R.id.movie_title);
  
              title.setText(titles.get(position));
              String name = titles.get(position);
  
              if (name.equals("Name 1") || name.equals("Name 2") 
                      || name.equals("Name 3")) {
                  TextView news = (TextView)vi.findViewById(R.id.new_sounds);
                  news.setVisible(0);
              }
  
              return vi;
          }
      }
  </code></pre>
  
  <p>and my layout for single row:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/LinearLayout1"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:background="@drawable/list_selector"
      android:orientation="horizontal"
      android:padding="5dip" &gt;
  
      &lt;TextView
          android:id="@+id/movie_title"
          android:layout_width="0dp"
          android:layout_height="wrap_content"
          android:layout_weight="9"
          android:layout_marginLeft="@dimen/list_margin"
          android:text="@string/entry"
          android:textColor="#FFFFFF"
          android:textSize="22sp" /&gt;
  
      &lt;TextView
          android:id="@+id/new_sounds"
          android:layout_weight="2"
          android:layout_width="0dp"
          android:layout_height="wrap_content"
          android:layout_marginLeft="5dp"
          android:textColor="#8C1717"
          android:textSize="13sp"
          android:text="@string/news"
          android:visibility="invisible" /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>