title: Android list scroll item invisible on the top after scrolling on upside but I don't need that
body: <p>I am using a list view with two item in one row also a header item added through <code>addHeaderView()</code>.</p>
  
  <p>Initially I am using dummy data with 7 items so last item of the listview need to be invisible.</p>
  
  <p>First time my data added successfully. But after scrolling on upside my first row's second item going to invisible but I do not want that.</p>
  
  <p>Here is my adapter code:</p>
  
  <pre><code>@Override
  public View getView(int position, View convertView, ViewGroup parent) {
  
      ViewHolder holder = null;
  
      if (convertView == null) {
          LayoutInflater mInflater = (LayoutInflater) context
                  .getSystemService(Context.LAYOUT_INFLATER_SERVICE);
          convertView = mInflater.inflate(R.layout.home_grid_item, parent,
                  false);
  
          holder = new ViewHolder();
          holder.imgPerformer = (CircularImageView) convertView
                  .findViewById(R.id.imgPerformer);
          holder.listItemTextView = (TextView) convertView
                  .findViewById(R.id.listItemTextView);
          holder.imgPerformer1 = (CircularImageView) convertView
                  .findViewById(R.id.imgPerformer1);
          holder.listItemTextView1 = (TextView) convertView
                  .findViewById(R.id.listItemTextView1);
          holder.performerFirstLi = (LinearLayout) convertView
                  .findViewById(R.id.performerFirstLi);
          holder.performerSecondLi = (LinearLayout) convertView
                  .findViewById(R.id.performerSecondLi);
  
          convertView.setTag(holder);
  
      } else {
          holder = (ViewHolder) convertView.getTag();
      }
  
      index = position * 2;
      holder.imgPerformer.setImageResource(performerItems.get(index)
              .getIcon());
      holder.listItemTextView.setText(performerItems.get(index).getName());
      if (performerItems.size() &gt; index + 1) {
          holder.imgPerformer1.setImageResource(performerItems.get(index + 1)
                  .getIcon());
          holder.listItemTextView1.setText(performerItems.get(index + 1)
                  .getName());
      } else {
          holder.performerSecondLi.setVisibility(View.INVISIBLE);
      }
  
      holder.imgPerformer.setOnClickListener(new View.OnClickListener() {
          @Override
          public void onClick(View v) {
  
          }
      });
      holder.imgPerformer1.setOnClickListener(new View.OnClickListener() {
          @Override
          public void onClick(View v) {
  
          }
      });
  
      return convertView;
  }
  
  private static class ViewHolder {
      public CircularImageView imgPerformer;
      public TextView listItemTextView;
      public CircularImageView imgPerformer1;
      public TextView listItemTextView1;
      public LinearLayout performerFirstLi;
      public LinearLayout performerSecondLi;
  }
  </code></pre>
  
  <p>Need some help.</p>