title: Android ListView does not display new items
body: <p>I have a ListView which is populated based on the value of the selected RadioButton, with the RadioButtons' OnClick events triggering the ListView to refresh with new values.</p>
  
  <p>I have this almost working, but the issue I have is that if the first RadioButton has 6 items to display in the ListView, then the second clicked RadioButton has 10 items to display, the ListView displays the first 6 items of the 10, then the first 4 items again, as if it's wrapping the items. I am populating the ListView using <code>ArrayList&lt;HashMap&lt;String, String&gt;&gt; listValues</code> and a SimpleAdapter and I have checked that listValues does contain 10 distinct values.</p>
  
  <p>The code to display the items is as follows:</p>
  
  <pre><code>    ListView listview = (ListView)getView().findViewById(R.id.my_listview);
  
      SimpleAdapter simpleAdapt = 
              new SimpleAdapter(getView().getContext(), listValues, 
                                 R.layout.my_listitem, 
                                 null, null) {
          @Override
          public View getView(int position, View convertView, ViewGroup parent) {
              HashMap&lt;String, String&gt; listItem = listValues.get(position);
  
              View v = convertView;
  
              if (convertView == null) {
                  LayoutInflater inflater = (LayoutInflater)parent.getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);                
                  v = inflater.inflate(R.layout.my_layout, null);
  
                  TextView nameTextview =
                          (TextView)v.findViewById(R.id.my_textview);
                  nameTextview.setText(listItem.get("name"));
  
                  TextView detailTextview =
                          (TextView)v.findViewById(R.id.my_textview_2);
                  detailTextview.setText(listItem.get("detail"));
  
                  if (listItem.get("main_image") != null) {
                      int imageId = Integer.valueOf(listItem.get("main_image"));
                              (ImageView)v.findViewById(R.id.my_imageview);
                      image.setImageResource(imageId);
                  }
              } 
              return v;
          };
      };
  
      listview.setAdapter(simpleAdapt);
  </code></pre>
  
  <p>Is there an obvious reason for the repeating list items?</p>