Set Imageview Tint Programmatically Android

[Solved] Set Imageview Tint Programmatically Android | Scala - Code Explorer | yomemimo.com
Question : changing tint of image programmatically

Answered by : drab-dove-7mj1fl5lodww

imageView.setColorFilter(ContextCompat.getColor(context, R.color.COLOR_YOUR_COLOR), android.graphics.PorterDuff.Mode.SRC_IN);

Source : https://stackoverflow.com/questions/20121938/how-to-set-tint-for-an-image-view-programmatically-in-android | Last Update : Thu, 31 Dec 20

Question : set imageview tint programmatically android

Answered by : vast-vole-0bbig2nsshmg

imageView.setColorFilter(ContextCompat.getColor(context, R.color.COLOR_YOUR_COLOR), android.graphics.PorterDuff.Mode.MULTIPLY);

Source : https://stackoverflow.com/questions/20121938/how-to-set-tint-for-an-image-view-programmatically-in-android | Last Update : Thu, 24 Jun 21

Answers related to set imageview tint programmatically android

Code Explorer Popular Question For Scala