Created
December 10, 2015 14:09
-
-
Save messenger63/60cc556042111368d95d to your computer and use it in GitHub Desktop.
Colored Drawable with filter
This file contains 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
Drawable img = ContextCompat.getDrawable(mContext, item.getTimerImage()); | |
img.setColorFilter(ContextCompat.getColor(mContext, R.color.white), PorterDuff.Mode.SRC_ATOP); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment