我正在编辑一个开源项目,发现将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)
你知道问题出在哪里吗?