title: Load 10 items at once ListView Android
body: <p>I'm developing an app that has a listview timeline feed, a unique item fills the entire screen, then I'm navigating through the feed, the items only loads when they become visible on the screen, I need load them before them appear on the screen, like load 10 items at once.</p>
  
  <p>My Adapter:</p>
  
  <pre><code>    public class FeedRowAdapter extends BaseAdapter {
  
  
          public FeedRowAdapter(Activity act, int resource, List&lt;FeedView&gt; arrayList)
                  throws Exception {
              this.activity = act;
              this.row = resource;
              this.items = arrayList;
              this.layoutInflater = LayoutInflater.from(act);
          }
  
  
          @Override
          public View getView(final int position, View convertView, ViewGroup parent) {
              View view = convertView;
              final ViewHolder holder;
  
              if (view == null) {
                  holder = new ViewHolder();
                  view = layoutInflater.inflate(row, null);
                  // LayoutInflater inflater = (LayoutInflater) activity
                  // .getSystemService(Context.LAYOUT_INFLATER_SERVICE);
                  // view = inflater.inflate(row, null);
  
                  view.setTag(holder);
              } else {
                  holder = (ViewHolder) view.getTag();
              }                
  
              if ((items == null) || ((position + 1) &gt; items.size()))
                  return view;
  
              objBean = items.get(position);
  
              //Some stuff here
  
              return view;
          }
  
          @Override
          public int getCount() {
              // PUBLICAR Auto-generated method stub
              return items.size();
          }
  
          @Override
          public Object getItem(int position) {
              // PUBLICAR Auto-generated method stub
              return items.get(position);
          }
  
          @Override
          public long getItemId(int position) {
              // PUBLICAR Auto-generated method stub
              return position;
          }
  
      }
  </code></pre>
  
  <p>EDIT:
  I'm already using on scroll to load more items, but the items has images to load, and it only loads when the item appears on the screen, I need that image load before become visible, like a preload. I'm using Picasso lib to load images. </p>
  
  <p>Thanks in advance.</p>