android-components / / DrawableUtils


object DrawableUtils (source)


Name Summary
loadAndTintDrawable fun loadAndTintDrawable(context: <ERROR CLASS>, resourceId: Int, color: Int): <ERROR CLASS>
Return a tinted drawable object associated with a particular resource ID.

Extension Functions

Name Summary
loadResourceAsString fun Any.loadResourceAsString(path: String): String
Loads a file from the resources folder and returns its content as a string object.