visibility

fun visibility(visibility: Boolean): Int

Convert true/false to View.VISIBLE and View.GONE

Parameters

visibility

boolean to convert