0

I'm using a GalleryView in which I want to change the background color to WHITE. I am using the following settings in my attrs.xml file. Seems simple but I have been unable to find out how to change/apply a custom background color to the GalleryView.

I just wanted to add that I want to keep the border effect that exists on the galleryItemBackground.

The effect Im looking for is to have a style almost identical to the galleryItemBackground except I want to invert the colors. I want a dark shade for the border and a white background for the image. How can I create this effect?

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <declare-styleable name="ProductGallery">
        <attr name="android:galleryItemBackground" />
    </declare-styleable>
</resources>
Byron
  • 3,833
  • 9
  • 34
  • 39
  • Why can't you set the background color in the xml file that you created the gallery in? That would be easiest. – ahodder Jun 04 '11 at 15:25
  • I tried that but the effect it had was that the border disappeared due to it blending in with the white background. The effect Im looking for is to have a dark shaded border with a white background for the images. – Byron Jun 04 '11 at 15:54

0 Answers0