FloatingLabel icon indicating copy to clipboard operation
FloatingLabel copied to clipboard

The following classes could not be instantiated......Tip: Use View.isInEditMode() in your custom views to skip code when shown in Eclipse?

Open WaylanPunch opened this issue 9 years ago • 1 comments

The following classes could not be instantiated:

See the Error Log (Window > Show View) for more details.

Tip: Use View.isInEditMode() in your custom views to skip code when shown in Eclipse

android.content.res.Resources$NotFoundException: Could not find dimen resource matching value 0x7F040001 (resolved name: activity_vertical_margin) in current configuration.

Need set a code snippet into the constructor method:

if (!isInEditMode()) {
         createLayout(null);
}

WaylanPunch avatar May 23 '15 15:05 WaylanPunch

@WaylanPunch Yes you are right. I will do that. You can clone the code and contribute. I also need to provide gradle support.

hardik-webonise avatar May 23 '15 16:05 hardik-webonise