library / org.akop.kotx.ext.view / android.view.ViewGroup / collapseIfEmpty

collapseIfEmpty

fun ViewGroup.collapseIfEmpty(): Unit

Sets receiver's visibility to View.GONE if receiver has no children; sets it to View.VISIBLE otherwise.