library / org.akop.kotx.ext.view / android.view.View / collapseIf

collapseIf

fun View.collapseIf(value: Boolean): Unit

Sets receiver's visibility to View.GONE if value is true; sets it to View.VISIBLE otherwise. Opposite of expandIf; also see hideIf.