Added check to prevent exception in interface builder
See docs on View.isInEditMode() for more information : http://developer.android.com/reference/android/view/View.html#isInEditMode()
Added enclosing brackets per request
Merge pull request #7 from iheart2code/ib_exception

Added check to prevent exception in interface builder