locate

fun <S : Drawable> Drawable.locate(id: String): S?

Locate a drawable by its name.

This method is recursive, meaning it will search through all children of this drawable.

Return

the drawable with the given name, or null if it was not found.

Since

1.1.72

Parameters

id

the name of the drawable to locate.