Hello.

Is there already a semi-official decision on the implementation of the new bottomNavigation ?

Saw many implementations, including https://github.com/roughike/BottomBar , but poorly customized.

For me it is necessary that the icons do not paint over and the icons themselves change depending on the active / inactive state.

And, as I understand it, now everyone is tied to the viewPager and disable the svayp?

picture

thank

  • Yes, you can do it with ViewPager and disable the swipe - Kirill Stoianov

1 answer 1

Most recently, a “solution” from Google came out. BottomNavigation It uses the menu.xml file as a list of items, and you can add a selector for each item ( selector.xml ). But as before, only the color can be changed there, the icon cannot be changed. I think this is done according to the material design guide. Svayp disconnect for the same reason.

The only solution to not change the color and change the icon is in Ahbottomnavigation . There you can nastit change the item in the listener , simply by deleting a specific item and adding another one (with another icon) to its place.