java - Bottom Navigation Icon color change -


i using bottomnavigation this when try change bottom navigation icon colors black background not change color.

 bottomnavigation.setaccentcolor(color.parsecolor("#ffe4770a"));  bottomnavigation.setinactivecolor(color.white);  bottomnavigation.setbackgroundcolor(color.black); 

but when tried background changes icon color.

 bottomnavigation.setaccentcolor(color.parsecolor("#ffe4770a"));  bottomnavigation.setinactivecolor(color.white); 

how fix it? changes icon color color background.

according documentation of ahbottomnavigation repo, setbackgroundcolor() override accent colors icons.

replace setbackgroundcolor() setdefaultbackgroundcolor() :

 bottomnavigation.setdefaultbackgroundcolor(color.black); 

Comments

Popular posts from this blog

angular - Is it possible to get native element for formControl? -

unity3d - Rotate an object to face an opposite direction -

javascript - Why jQuery Select box change event is now working? -