Return two widgets from a getView methord
<p>I am working in an android application and I want to implement a Gallery. And on my getView method now I return a Image View. In this method I want to return a button and an Image View. How can I do this.</p>

<p>Thanks in advance</p>

<p>This is ma code :</p>

<pre><code>ImageView imageView = new ImageView(mContext);
        imageView.setImageResource(mImageIds[position]);
        imageView.setLayoutParams(new Gallery.LayoutParams(150, 180));
        imageView.setScaleType(ImageView.ScaleType.CENTER_INSIDE);
        imageView.setBackgroundResource(mGalleryItemBackground);
        return imageView;
</code></pre>
