Custom views tricks
public Class CustomView {
public CustomView(Context context, AttributeSet attrs) {
super(context, attrs);
// Makes the developer tools happy when previewing stuff
if (isInEditMode()) {
return;
}
}
}