question

Bujdy-5092 avatar image
0 Votes"
Bujdy-5092 asked RobCaplan edited

SetIcon change color

Hello i am trying to set icon of bottom nav bar

111158-icon-frame.png


I want it to look like this, but when i use SetIcon(Resource.Drawable.Icon);

111256-image.png
It just change whole icon to green color. Is it possible to not change the color for whole Icon?


dotnet-xamarin
icon-frame.png (1.2 KiB)
image.png (2.2 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Could you share your Icon png or demo here? I can make a test it. If your icon is not simple color, plese remove ItemIconTintList with custom renderer:https://social.msdn.microsoft.com/Forums/en-US/3a646922-35fd-4efe-a56d-cf37ac4c550b/how-to-use-multicolored-icons-on-tabbedpage?forum=xamarinforms

0 Votes 0 ·

1 Answer

PRASANTMOHANTY-6840 avatar image
0 Votes"
PRASANTMOHANTY-6840 answered Bujdy-5092 commented

Set the icon image in parameters. And also use the border color of the icon.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I dont understand, what you mean, how can i use border color of icon?

0 Votes 0 ·