I want to hide a menu item of BottomNavigationView dynamically based on some conditions. I tried the following but it is not working.
mBottomNavigationView.g
setVisibility should work for you. FYI, below example is in kotlin.
bottomNavigationView.menu.findItem(R.id.navigation_item_two).isVisible = false