Gallery with CursorAdapter
<p>I am trying to use the Gallery View with <code>SimpleCursorAdapter</code>.</p>

<p>Just I set the adapter for Gallery, Like:</p>

<pre><code>gallery.setAdapter(customizedSimpleCursorAdapter);
</code></pre>

<p>The problem is, For a single View, only one image is displayed. The adapter generates the new View for every images.</p>

<p>In other case I tried with <code>BaseAdapter</code>. But in <code>BaseAdapter</code> we dont have overridden methods like <code>swapCursor()</code>. I need to use this method. And also the image starts to displayed from center of the view. I need to get it starts from Left Corner.</p>

<p>In above, I checked with that two cases. If your suggestion is related to anyone of this, That will really helpful. Thank you </p>

<p>This is the BaseAdapter which I used:</p>

<p>public static class CustomizedBaseAdapter extends BaseAdapter {</p>

<pre><code>        private Context cont;

        public AddImgAdp(Context c) {
            cont = c;
     }

        public Object getItem(int position) {
            return position;
        }
        public long getItemId(int position) {
            return position;
        }
        public View getView(int position, View convertView, ViewGroup parent) {


        ImageView image = new ImageView(cont);
       image.setImageDrawable(drawableImage);



                   return image;
        }
    }
</code></pre>
