I want to have a Switch in the Bottom Navigation to set the online/offline state of the user like below Image:
The menu itself should be dynamic so i built it manually with:
menu.add(Menu.NONE, R.id.navigation_dashboard, Menu.NONE, "").setIcon(R.drawable.ic_app)
Is there a way to achieve this and add a switch to this? I accomplished the this in iOS by setting a switch to the frame of the bottom navigation bar item.