aurelhubert / ahbottomnavigation

A library to reproduce the behavior of the Bottom Navigation guidelines from Material Design.
3.84k stars 684 forks source link

Remove BottomNavigation Selection #327

Open deshario opened 6 years ago

deshario commented 6 years ago

Select First Item : bottomNavigation.setCurrentItem(0); How can i deselect all the items ... something like clear selection .. Can i do that ....

aminsato commented 6 years ago

This way unites the color and size of select and deselect modes

bottomNavigation.setInactiveColor(Color.parseColor("#FFECF1EB"));
bottomNavigation.setAccentColor(Color.parseColor("#FFECF1EB"));
bottomNavigation.setTitleTextSize(27,27);
Rezeq-Elewa commented 6 years ago

bottomNavigation.setCurrentItem(-1); will do the trick.

golanir commented 6 years ago

bottomNavigation.setCurrentItem(-1); returns java.lang.ArrayIndexOutOfBoundsException: length=10; index=-1, any other way to clear the selected icon?