Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gallery items overlapping (bleed in)

My probel is that images in my Gallery are bleeding in into each other once I begin scrolling towards the next image.

I am using a android.widget.Gallery connected to a custom adapter I extended from BaseAdapter.

The adapter's GetView() method is like this

public View getView(int position, View convertView, ViewGroup parent) {
            ImageView i = new ImageView(mContext);
            if (mImageBitmap != null && position < mImageBitmap.length)
             i.setImageBitmap(mImageBitmap[position]);
            return i;

alt text }

like image 433
yann.debonnel Avatar asked Oct 20 '10 20:10

yann.debonnel


1 Answers

Did you try using android:spacing ( in xml) or setSpacing(int spacing) (in code) on the Gallery?

like image 185
level32 Avatar answered Oct 02 '22 13:10

level32