Considering this:
MyView.setVisibility(View.VISIBLE)
can be simplified to this:
inline fun View.setVisible() = apply { visibility = View.VISIBLE }
MyView.setVisible()
Or this if you prefer:
inline infix fun View.vis(vis: Int) = apply { visibility = vis }
MyView vis View.VISIBLE
Is there anyway of accomplish the same by doing this:
MyView.VISIBLE