I’ve been styling and theming various components like ListView today and I was wondering what is the easiest way to find out what the default resource, color, drawable etc is for a given xml attribute. For example View has a android:scrollbarTrackVertical attibute for which the docs says:
This corresponds to the global attribute resource symbol scrollbarTrackVertical.
Well, that’s all fine and dandy but when I navigate to the docs for R.attr but that won’t give me the name of the actual reference in the platform source code, which might be a good starting point for styling stuff in the first place.
Am I missing something in the docs or is there a trick to figure out the “default” values for a given platform release?
You can get most of default values from style.xml file. Also, themes.xml file contains some defaults, but not widgets’ defaults. But usually it’s rather useful too.