Defining custom attrs
Currently the best documentation is the source. You can take a look at it here (attrs.xml). You can define attributes in the top <resources> element or inside of a <declare-styleable> element. If I’m going to use an attr in more than one place I put it in the root element. Note, all attributes share the … Read more