setupEditMode

Call this in onAttachedToWindow() like this:

override fun onAttachedToWindow() {
if (isInEditMode) {
setupEditMode()
}

super.onAttachedToWindow()
}