espinchi
espinchi

Reputation: 9212

Where can I see the default styles.xml in Android?

Where can I find the source code of the definition of the android default styles, such as ?android:attr/progressBarStyle?

I know that the Android repo is replicated in https://github.com/android but... I just can't find the styles.xml, strings.xml, etc there!

Upvotes: 7

Views: 16122

Answers (2)

Philipp Reichart
Philipp Reichart

Reputation: 20961

With the ADT plugin in Eclipse, you can just type android.R.somegroup.someconstant, then mouse-over and hold CTRL (doesn't even have to be syntactically correct/compilable for that) -- this will give you a popup with two (or in case of strings.xml more) options to "Open declaration in [some XML file]".

For reasons that escape me, this doesn't seem to work for any of android.R.style.* -- for everything else it does (color, string, layout, ...).

Upvotes: 3

Dan S
Dan S

Reputation: 9189

In the value resources directory.

Upvotes: 8

Related Questions