Yevgeny Simkin
Yevgeny Simkin

Reputation: 28439

How do I customize the look & feel of a Gallery?

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]

Upvotes: 2

Views: 420

Answers (2)

Yevgeny Simkin
Yevgeny Simkin

Reputation: 28439

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

Hope it helps someone.

Upvotes: 0

Kurtis Nusbaum
Kurtis Nusbaum

Reputation: 30845

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

Upvotes: 1

Related Questions