title: Clearing View cache of ListView
body: <p>I have a ListView that I put through a complex bit of coding.  The list changes often with different types of data that require different views.  On rare occasion, I'll end up with 1 view being reused by Android for a row that's supposed to look different.  It seems to only happen when the data being displayed radically changes.  I was hoping there was a way to programmatically wipe the ListView's memory clean.  Is this possible?</p>
  
  <p>Here is the beginning of my getView:</p>
  
  <pre><code>@Override
          public View getView(int position, View convertView, ViewGroup parent) {
              SearchHolder holder = null;
              int type = getItemViewType(position);
  
              if (null == convertView) {
                  holder = new SearchHolder();
                  if (type == SEARCH_TYPE_FREETEXT) {
                      convertView = mInflater.inflate(R.layout.layout_search_item_freetext, null);
                      holder.txtText = (TextView) convertView.findViewById(R.id.search_itemname);
                      holder.vHeaderWrapper = (LinearLayout) convertView.findViewById(R.id.search_headerwrapper);
                      holder.txtHeader = (TextView) convertView.findViewById(R.id.search_header);
                  }
                  else {
                      if (items.get(position).mData == null) {
                          convertView = mInflater.inflate(R.layout.layout_loadmoreresults_white, null);
                      }
                      else {
                          convertView = mInflater.inflate(R.layout.layout_search_item, null);
                          holder.txtText = (TextView) convertView.findViewById(R.id.search_itemname);
                          holder.vHeaderWrapper = (LinearLayout) convertView.findViewById(R.id.search_headerwrapper);
                          holder.txtHeader = (TextView) convertView.findViewById(R.id.search_header);
                      }
                  }
                  convertView.setTag(holder);
              }
              else {
                  holder = (SearchHolder)convertView.getTag();
              }
  ...
  </code></pre>