toggle

fun <S : Drawable> S.toggle(state: Boolean): S

Toggle any element to the given state provided it was made with the toggleable method.

Since

1.7.2