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