Export to GitHub

doclava - issue #62

Document how to use @attr


Posted on Jul 16, 2013 by Helpful Kangaroo

Please add some instructions on how to add some documentation to custom attributes when creating custom Views.

There is a basic summary in these docs, but it isn't descriptive enough and trying to copy examples from the Android source doesn't seem to work.

I have tried all sorts of things, but the nearest to success I have gotten is the error:

error 106: @attr must be a field: R.styleable#Foo_bar

Even though Foo.bar is a field.

Despite a bunch of googling, I haven't found anyone that has got this to work - nowhere except in the Android source that is.

Status: New

Labels:
Type-Defect Priority-Medium