Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如本问题所述,我已设法使用不同的组 ID 在导航视图中显示分隔符 。但我想知道如何更改分隔线和停用 itemiconTint 属性的颜色。预先感谢
编辑:我在评论中提出问题,@Moinkhan 已经回答了。所以我编辑这个问题
是的,您可以使用停用色调
以编程方式
yourNavigationView.setItemIconTintList(null);
使用 XML
<android.support.design.widget.NavigationView ... app:itemIconTint="@android:color/black" ... />
我希望它可以帮助你..