title: gridview with image and text android
body: <p>I successfully created a gridview populated with images. Now, what I want to do is put a text below the image.</p>
  
  <p>This is the screenshot of my app so far. </p>
  
  <p><a href="http://i203.photobucket.com/albums/aa266/paulocarabuena_bucket/screen-2.png" rel="nofollow">http://i203.photobucket.com/albums/aa266/paulocarabuena_bucket/screen-2.png</a></p>
  
  <p>Here is my getView method in my imageadapter class..</p>
  
  <pre><code>public View getView(int position, View convertView, ViewGroup parent) {
  ImageView imageView;
  
  if (convertView == null) {
      imageView = new ImageView(this.context);
      imageView.setLayoutParams(new GridView.LayoutParams(85, 85));
      imageView.setScaleType(ImageView.ScaleType.CENTER_CROP);
      imageView.setPadding(8, 8, 8, 8);
  } else {
      imageView = (ImageView) convertView;
  }
  
  imageView.setImageResource(this.thumbs[position]);
  return imageView;
  }
  </code></pre>
  
  <p>Here is the onCreate method of my main activity</p>
  
  <pre><code>public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      this.launchFullScreen();
      this.setContentView(R.layout.main);
  
      this.grids = (GridView) this.findViewById(R.id.elements);
  
      ImageAdapter adapter = new ImageAdapter(this);
  
      this.grids.setAdapter(adapter);
  
      this.grids.setOnItemClickListener(new OnItemClickListener() {
          public void onItemClick(AdapterView&lt;?&gt; parent, View v,
                  int position, long id) {
  
          }
      });
  }
  </code></pre>
  
  <p>Thanks in advance. :)</p>