我们在使用DrawerLayout+NavigationView进行布局时候,菜单项一般定义在menu/xxx.xml下,如下图:

Screen Shot 2018-08-08 at 5.55.42 PM.png
当我们运行时却发现成了下面的样子:

Screen Shot 2018-08-08 at 4.54.47 PM.png
经过研究发现NavigationView有这样一个方法:setItemIconTintList
用于设置应用于菜单项图标的色调