In drawble are icon default(black). I want to change color for these icon.
Asked
Active
Viewed 2,429 times
1
-
is it a vector image? meaning xml file? – Akshay Kulkarni Apr 28 '16 at 07:57
-
Possible duplicate of http://stackoverflow.com/questions/3024983/how-do-i-change-the-tint-of-an-imagebutton-on-focus-press – Softlion Apr 28 '16 at 08:01
-
It is a png. It not xml file – J. Joe Apr 28 '16 at 08:48
2 Answers
4
Could you not do something like this:
ImageView forecastImage = View.FindViewById<ImageView>(Resource.Id.ForecastImage);
var color = Color.ParseColor("#AE6118"); //The color u want
forecastImage.SetColorFilter(color);

Iain Smith
- 9,230
- 4
- 50
- 61