我正在编辑一个开源项目,发现 layout_marginTop 的 -1dp 值导致 Eclipse 中的图形预览因错误而失败。完整的错误消息,可能包括一个额外的错误,是:
java.lang.NullPointerException
"-1dp" in attribute "layout_marginTop" is not a valid format.
Exception details are logged in Window > Show View > Error LogThe graphics preview in the layout editor may not be accurate:
Paint.setShadowLayer is not supported. (Ignore for this session)
你知道问题是什么吗?