library / org.akop.kotx.ext.view / android.widget.TextView / hideIfEmpty

hideIfEmpty

fun TextView.hideIfEmpty(): Unit

Sets receiver's visibility to View.INVISIBLE if TextView.getText is null or empty; sets it to View.VISIBLE otherwise.