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

hideIfEmpty

fun ViewGroup.hideIfEmpty(): Unit

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