title: Every 7th item I get a duplicate because of my arrayadapter?
body: <p>Every 7th time I get a duplicate item in my listview and it starts back from resulst nr 1 so this is my listview.</p>
  
  <p>Item 1
  Item 2
  Item 3
  Item 4
  Item 5
  Item 6
  Item 7
  Item 1
  Item 2
  Item 3
  Item 4</p>
  
  <p>I think it's because of my arrayadapter but I do not know where the fault is this is my adapter:</p>
  
  <pre><code>import java.util.List;
  
  import android.content.Context;
  import android.view.LayoutInflater;
  import android.view.View;
  import android.view.ViewGroup;
  import android.widget.ArrayAdapter;
  import android.widget.TextView;
  
  public class ListEventAdapter extends ArrayAdapter&lt;EventDetails&gt; {
  
      public ListEventAdapter(Context context, int textViewResourceId) {
          super(context, textViewResourceId);
          // TODO Auto-generated constructor stub
      }
  
      private List&lt;EventDetails&gt; eItems;
  
      public ListEventAdapter(Context context, int resource, List&lt;EventDetails&gt; eItems) {
  
          super(context, resource, eItems);
  
          this.eItems = eItems;
      }
  
      @Override
      public View getView(int position, View convertView, ViewGroup parent) {
  
          View v = convertView;
  
          TextView txtAttending_count = null;
          TextView txtName = null;
  
          if (v == null) {
  
              LayoutInflater vi;
              vi = LayoutInflater.from(getContext());
              v = vi.inflate(R.layout.event_item, null);
  
              txtAttending_count = (TextView) v.findViewById(R.id.attending_count);
              txtName = (TextView) v.findViewById(R.id.name);
          }
  
          EventDetails p = eItems.get(position);
  
          if (p != null) {
  
              if (txtAttending_count != null) {
                  txtAttending_count.setText(""+p.getAttending_count());
              }
              if (txtName != null) {
  
                  txtName.setText(""+p.getName());
              }
          }
  
  
  
          return v;
  
      }
  }
  </code></pre>