I'm editing an open source project and find that a -1dp value for layout_marginTop is causing the graphical preview in Eclipse to fail with the error. The full error message, which probably includes an additional error, is:
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)
Do you know what the problem is?