J. Joe
J. Joe

Reputation: 381

How to change color of icon in imageButton xamarin android

In drawble are icon default(black). I want to change color for these icon.

Upvotes: 1

Views: 2461

Answers (2)

Matt
Matt

Reputation: 4603

You can use android:tint="#ff0000" to color an image.

Upvotes: 2

Iain Smith
Iain Smith

Reputation: 9703

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);

Upvotes: 4

Related Questions