android-components / mozilla.components.support.utils / DrawableUtils

DrawableUtils

object DrawableUtils (source)

Functions

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.