Android has new ui element - BottomNavigationView
I don't want to contain my menus in the xml files. I will receive the information about menu items and order from backend side. I want to create them dynamically and set into the BottomNavigationView in the onCreate() method. Can I do this?

By default,
BottomNavigationViewstarts with an empty menu. You can use thegetMenu()method to get the Menu instance, then add menu items as in the response above. For example,