Answers for "set imageview tint programmatically android"

1

set imageview tint programmatically android

imageView.setColorFilter(ContextCompat.getColor(context, R.color.COLOR_YOUR_COLOR), android.graphics.PorterDuff.Mode.MULTIPLY);
Posted by: Guest on June-17-2021
0

changing tint of image programmatically

imageView.setColorFilter(ContextCompat.getColor(context, R.color.COLOR_YOUR_COLOR), android.graphics.PorterDuff.Mode.SRC_IN);
Posted by: Guest on December-24-2020

Code answers related to "set imageview tint programmatically android"

Browse Popular Code Answers by Language