Skip to content

Instantly share code, notes, and snippets.

@AshuTyagi16
Created November 16, 2020 09:40
Show Gist options
  • Save AshuTyagi16/f6bdafbb95421499684022d66704751c to your computer and use it in GitHub Desktop.
Save AshuTyagi16/f6bdafbb95421499684022d66704751c to your computer and use it in GitHub Desktop.
fun Drawable.updateTint(color: Int) {
DrawableCompat.wrap(this)?.let {
DrawableCompat.setTint(it, color)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment