How can I make the background-Color of gallery items transparent and change border style and size?
<p>This is What I want to achieve</p>

<hr>

<p><img src="http://i.stack.imgur.com/htCWd.jpg" alt="">
This is what appears "I want to modify"</p>

<hr>

<p><img src="http://i.stack.imgur.com/brOYw.jpg" alt="">
1 - how can I change the background of the items in gallery to be transparent?
2 - How can I remove the borders around each item in gallery?
3 - How can I show them in normal size "without being stretched" ?</p>

<hr>

<p><strong>Here is the code used</strong>
.java</p>

<pre><code>public class Search extends Activity {
    protected void onCreate(Bundle savedInstanceState) {
        // TODO Auto-generated method stub
        super.onCreate(savedInstanceState);
        setContentView(R.layout.options);
          Gallery gallery = (Gallery) findViewById(R.id.gallery1);
            gallery.setAdapter(new ImageAdapter(this));

            gallery.setOnItemClickListener(new OnItemClickListener() {
                public void onItemClick(AdapterView parent, View v, int   position, long id) {
                    Toast.makeText(Search.this, "" + position, Toast.LENGTH_SHORT).show();
                }
            });
}
public class ImageAdapter extends BaseAdapter {
        int mGalleryItemBackground;
        private Context mContext;

        private Integer[] mImageIds = {
                R.drawable.animals,
                R.drawable.automotive,
                R.drawable.directory,
                R.drawable.homeoffice,
                R.drawable.hobbies,
                R.drawable.mother,
                R.drawable.jobs,
                R.drawable.realestate,
                R.drawable.technology
        };

        public ImageAdapter(Context c) {
            mContext = c;
            TypedArray attr =   mContext.obtainStyledAttributes(R.styleable.HelloGallery);
            mGalleryItemBackground = attr.getResourceId(
                    R.styleable.HelloGallery_android_galleryItemBackground,17170445 );
            attr.recycle();
        }

        public int getCount() {
            return mImageIds.length;
        }

        public Object getItem(int position) {
            return position;
        }

        public long getItemId(int position) {
            return position;
        }

        public View getView(int position, View convertView, ViewGroup parent) {
            ImageView imageView = new ImageView(mContext);

            imageView.setImageResource(mImageIds[position]);
            imageView.setLayoutParams(new Gallery.LayoutParams(150, 100));
            imageView.setScaleType(ImageView.ScaleType.FIT_XY);
            imageView.setBackgroundResource(mGalleryItemBackground);

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