2

I'm having a hard time understanding how I can create my own Gallery item. Specifically, I want to alter the appearance of the rectangle that surrounds whatever is the currently selected item (and remove altogether the rectangle that surrounds the non selected items).

Is there a good tutorial on how to create my own styles and pass them into my Widgets?

[Edit] When initializing my gallery I hand it this

R.styleable.GalleryTheme_android_galleryItemBackground

and

R.styleable.GalleryTheme

I'm sure if I could crack those open, I could then copy and alter into what I want.... but where does Android store these? [/edit]

Yevgeny Simkin
  • 27,946
  • 39
  • 137
  • 236

2 Answers2

1

The contents of those themes can most likely be found some where in the source code of the Android Open Source Project. It'l probably be somewhere here in the resources folder

Kurtis Nusbaum
  • 30,445
  • 13
  • 78
  • 102
  • oy vey... I guess I was hoping the relevant parts of this would have been covered in some web tutorial... but if no one else chimes in with help... I'll download the source :( – Yevgeny Simkin Oct 25 '11 at 18:09
  • 1
    You can browse the source with the new link I just put in my post. Although I think that link might be a little old. I got it from a privious SO post. – Kurtis Nusbaum Oct 25 '11 at 18:11
0

Ok... this thread answers the actual question: Android Hello, Gallery tutorial -- "R.styleable cannot be resolved"

Hope it helps someone.

Community
  • 1
  • 1
Yevgeny Simkin
  • 27,946
  • 39
  • 137
  • 236