Declaring styleable attributes in Android
There's precious little documentation about the declare-styleable tag by which we can declare custom styles for components. I did find this list of valid values for the format attribute of the attr tag. While that's nice as far as it goes, it doesn't explain how to use some of those values. Browsing attr.xml (the Android source for the standard attributes), I discovered that you can do things like: <!-- The most prominent text color. --> <attr name="textColorPrimary" format="reference|color" /> The format attribute can evidently be set to a combination of values. Presumably the format