I’ve followed THIS thread to remove the border that surrounds the Gallery, but the problem now is that I have a gray background on top of my images. Its like a transparent gray background comes on top of the images.
This happened after removing these lines from the ImageAdapter:
public ImageAdapter(Context c) {
mContext = c;
TypedArray a = c.obtainStyledAttributes(R.styleable.Gallery1);
mGalleryItemBackground = a.getResourceId(R.styleable.Gallery1_android_galleryItemBackground, 0);
a.recycle();
}
and from the getView of the Adapter I removed:
i.setBackgroundResource(mGalleryItemBackground);
Now I dont have a border but I have this gray panel.
Anyone knows how to fix this?
In the end all I had to do to fix this problem is to add this line to my GetView():