Created
August 12, 2014 18:59
-
-
Save patrickhammond/a3c51f08321cc5cea20b to your computer and use it in GitHub Desktop.
Custom views tricks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public Class CustomView { | |
public CustomView(Context context, AttributeSet attrs) { | |
super(context, attrs); | |
// Makes the developer tools happy when previewing stuff | |
if (isInEditMode()) { | |
return; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment