我知道如何创建视图自定义属性,例如:如何将文档添加到自定义属性?
<?xml version="1.0" encoding="utf-8"?>
<resources>
<declare-styleable name="SomeViewsCustomAttrs">
<attr name="someAttr" format="dimension" />
<attr name="anotherAttr" format="boolean" />
</declare-styleable>
</resources>
我想知道如果有一种方法来添加文档,这些自定义的attrs。在编辑XML编辑器中的布局时,您可以获取描述attrs的工具提示。例如,如果您正在键入android:layout_width=
它会给你以下信息,“指定视图的基本宽度。[尺寸,枚举]”
有没有办法为你自己的attrs提供?
感谢
难道你有没有找到答案呢? – drewhannay 2013-06-17 17:04:53
@drewhannay我放弃了寻找,还没有找到任何东西。 – cottonBallPaws 2013-06-18 16:23:38