changeVisibility

fun View.changeVisibility(show: Boolean = !isShown, goneOnHide: Boolean = true)(source)