safeFocus

fun safeFocus(drawable: Drawable?): Boolean

try to focus a drawable, without throwing an exception.

Return

true if the drawable was focused successfully, and false if it is not Drawable.focusable, or if it is already focused.

Since

1.0.4

See also