title: progressBar in ListView changes parent on scroll
body: <p>I have a ListView with rows created with using specific layout. Each row have ProgressBar that is View.GONE by default. I need to make ProgressBar in ListView item visible when this element is clicked. The problem is that when i click the element ProgressBars became visible not only in the row i clicked but in other random rows too. Here is the code:</p>
  
  <p>Creating ListView and setting OnItemClickListener:</p>
  
  <pre><code>private void buildTracklist(ArrayList&lt;Audio&gt; differences, ArrayList&lt;Audio&gt; vkAudioList) {
          ArrayList&lt;Map&lt;String, Object&gt;&gt; data = new ArrayList&lt;Map&lt;String, Object&gt;&gt;(vkAudioList.size());
          Map&lt;String, Object&gt; m;
          int i;
          for (i=0;i&lt;vkAudioList.size();i++) {
              m = new HashMap&lt;String, Object&gt;();
              m.put(AUDIO_ARTIST, vkAudioList.get(i).artist);
              m.put(AUDIO_TITLE, vkAudioList.get(i).title);
              if (arrayListContainsAudio(differences, vkAudioList.get(i))) {
                  m.put(AUDIO_DOWNLOADED, R.drawable.image_blank);
              } else {
                  m.put(AUDIO_DOWNLOADED, R.drawable.image_downloaded);
              }
              data.add(m);
          }
          String[] from = {AUDIO_TITLE,AUDIO_ARTIST,AUDIO_DOWNLOADED};
          int[] to = {R.id.audioTitleTextView,R.id.audioArtistTextView,R.id.isDownloadedImageView};
          sAdapter = new SimpleAdapter(this, data, R.layout.tracklist_item, from, to);
          audioListView = (ListView) findViewById(R.id.audioListView);
          audioListView.setAdapter(sAdapter);
  
          audioListView.setOnItemClickListener(new OnItemClickListener() {
              @Override
              public void onItemClick(AdapterView&lt;?&gt; parent, View view, int position, long id) {
                  Log.i(TAG,"position="+position+" id="+id);
  
                  view.findViewById(R.id.audioItemProgressBar).setVisibility(View.VISIBLE);
                  //Here I'm passing progressBar further
              }
          });
      }
  </code></pre>
  
  <p>tracklistItem layout:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent" &gt;
  
      &lt;RelativeLayout
          android:layout_width="match_parent"
          android:layout_height="wrap_content" &gt;
  
          &lt;TextView
              android:id="@+id/audioTitleTextView"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_marginLeft="5dp"
              android:layout_marginTop="2dp"
              android:gravity="top|left"
              android:text="Title"
              android:textSize="24dp" /&gt;
  
          &lt;TextView
              android:id="@+id/audioArtistTextView"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_below="@id/audioTitleTextView"
              android:layout_marginLeft="5dp"
              android:layout_marginTop="2dp"
              android:text="Artist"
              android:textSize="16sp" /&gt;
  
          &lt;ProgressBar
              android:id="@+id/audioItemProgressBar"
              style="?android:attr/progressBarStyleHorizontal"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:layout_alignParentLeft="true"
              android:layout_below="@+id/audioArtistTextView"
              android:visibility="gone" /&gt;
  
      &lt;/RelativeLayout&gt;
  
      &lt;ImageView
          android:id="@+id/isDownloadedImageView"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="bottom|right"
          android:src="@drawable/downloaded_backgroundv10"
          android:visibility="visible" /&gt;
  
  &lt;/FrameLayout&gt;
  </code></pre>
  
  <p>I tried to get the listview item view with getChildAt() of getView() but the same problem occured.  Thanks for help and sorry for my bad english.</p>
  
  <p>Update: i found that progressBar i'm using changes parent item when i scroll ListView but i need it to be in one row no matter what part of ListView is currently on screen.</p>