Often open other people's projects, found that the layout of the use of some third-party custom controls, graphical layout label is unable to preview the page, throw some exceptions:
For hints Tip:use view.isineditmode () in your custom views to skip code when shown in Eclipse.
Or a direct throw of the java.lang.NullPointerException,
We directly find the code for the view layer, and the workaround is to locate the triggering error code snippet and use the code line that caused the error
if (!isineditmode ()) {
Code snippet that caused the error
}
Wrapped so that the code snippet is skipped when displayed in Eclipse and no more errors occur.
This will allow you to preview the layout normally.
Reference Original: http://blog.csdn.net/changemyself/article/details/43794725
"Android Note" references a third-party custom control error: Tip:use View.isineditmode () in your custom views to skip code when shown in Eclipse