title: How to improve gridview performance (android)
body: <p>How can i improve my gridView performance? Scrolling is not smooth. </p>
  
  <p>Here's my code:</p>
  
  <pre><code>public View getView(final int position, View convertView, ViewGroup parent) {
  
          View MyView;
  
          // Inflate the layout
          LayoutInflater li = ((Activity) MyContext).getLayoutInflater();
  
          MyView = li.inflate(R.layout.gallery_adapter, null);
          ImageButton imageFolders = (ImageButton) MyView.findViewById(R.id.folder);
  
  
          try {
  
              imageFolders.setImageBitmap(bMap);
              imageFolders.setOnClickListener(this);
              imageFolders.setId(products.get(position).getId());
          } catch (Exception e) {
  
          }
  
          MyView.setLayoutParams(70, 70);
          return MyView;
      }
  </code></pre>
  
  <p>I have something like 200 images on this gridView, but the performance is very, very bad. </p>