Created
June 25, 2020 16:27
-
-
Save gabrielbmoro/bc052e0ebc048e21d496b0ac7bb4d3e8 to your computer and use it in GitHub Desktop.
Progress color
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun setProgressBarColor(@ColorRes colorRes: Int) { | |
val unwrappedDrawable = progressbar.progressDrawable | |
DrawableCompat.setTint(unwrappedDrawable, ContextCompat.getColor(context, colorRes)) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment