简体   繁体   中英

How to give color to menu items for Navigation drawer in Xamarin.Android

I have a Navigation Drawer in my Xamarin.Android app, it's menu items have icons that are coloured but when i run, they are greyed.

After searching on Stack, i've found ou that this is coursed by tinting - but all question handle how to disabling tinting in standard android projects. How do I achieve this in Xamarin.Android

Try:

navView.ItemIconTintList = null;

Note : If you are familiar with the Android SDK, to get an equivalent method in Xamarin.Android (usually) is matter of removing the set/get from the name as this is converted to a C# property.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM