title: Update progressbar in Gridview
body: <p>I have <code>AudioListFile</code> with Player Program.
  When i click an item of <code>GridView</code>, sound will be played.!
  <a href="http://i.stack.imgur.com/5Nv7B.png" rel="nofollow">enter image description here</a></p>
  
  <p>Now, i wonder, How can i update <code>ProgressBar</code> in <code>GridView</code>?
  I need <code>mediaplayer.getDuration()</code> in adapter.
  please help me. thank you so much.
  My adapter:</p>
  
  <pre><code>public View getView(final int position, View convertView, ViewGroup parent) {
  
      if (convertView == null) {
  
          // Initialize views
          holder = new Holder();
          convertView = inflater.inflate(R.layout.raw_audio_list_item, null);
          holder.tvFileName = (TextView) convertView.findViewById(R.id.row_audio_list_item_tv_file_name);
          holder.tvFileSize = (TextView) convertView.findViewById(R.id.row_audio_list_item_tv_file_size);
          holder.pbPlayProgress = (ProgressBar) convertView.findViewById(R.id.audio_file_list_pb);
  
          convertView.setTag(holder);
  
  
      } else {
  
          holder = (Holder) convertView.getTag();
  
  
      }
  
      // get the map object from list
      AudioDataModel audioFileModel = audioFileList.get(position);
  
      // set data to view
      holder.tvFileName.setText(audioFileModel.getFileName());
      holder.tvFileSize.setText(audioFileModel.getFileSize());
      holder.pbPlayProgress.setMax(Integer.parseInt(audioFileModel.getFileDuration()));
  
      convertView.setId(Integer.valueOf(audioFileModel.getFileId()));
  
      return convertView;
  }
  </code></pre>