Currently I have an implementation like this-
mBottomNav.setOnNavigationItemSelectedListener(
......
switch (item.getItemId()) {
case R.id.actionUser:
if(userLoggedIn) {
mHomePresenter.btnUser();
}
else {
showLongToast("User Not Logged In");
}
break;
});
The logical else part where I will show the toast message, neither I want the BottomNavigationView to shift nor the change of menu icon colour.
How I can implement such logic only on this specific part? All the other menu item will persist the default shifting logic.