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

expandIf

fun View.expandIf(value: Boolean = false): Unit

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