4
如果您看LienarLayout's source code,您会注意到有一个注释名为@ViewDebug.ExportedProperty.
我的问题是:什么是@ViewDebug.ExportedProperty
?究竟是什么@ ViewDebug.ExportedProperty?
如果您看LienarLayout's source code,您会注意到有一个注释名为@ViewDebug.ExportedProperty.
我的问题是:什么是@ViewDebug.ExportedProperty
?究竟是什么@ ViewDebug.ExportedProperty?
@ViewDebug.ExportedProperty
是用于调试Android框架的annotation。它不是公共API的一部分。
此注解可用于标记视图服务器转储的字段和方法。只有不带参数的非void方法才能由此注释注释。
ViewServer不是公共API的一部分。请参阅this关于Android框架工程师Romain Guy所说的视图服务器的讨论:
ViewServer不是公共API并且不应该这样使用。
实际上这已经改变了,因为这个答案你可以使用'ViewServer'作为一个独立的工具类https://github.com/romainguy/ViewServer和'@ ViewDebug.ExportedProperty'很棒https:// plus。 google.com/+EvelioTarazonaCaceres/posts/fQ3G2QHaLx4 – eveliotc 2014-06-05 22:18:25