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
I tried most of solutions but this worked for me,
For hiding an item dynamically : bottomNavigationView.findViewById(R.id.xyz).setVisibility(View.GONE);
bottomNavigationView.findViewById(R.id.xyz).setVisibility(View.GONE);
For making item visible: bottomNavigationView.findViewById(R.id.xyz).setVisibility(View.VISIBLE);
bottomNavigationView.findViewById(R.id.xyz).setVisibility(View.VISIBLE);