I am creating an Android app and I stumbled upon the fact that the previous way to create a bottom navigation view has been deprecated.
This is the error I am getting:
'setOnNavigationItemReselectedListener(com.google.android.material.bottomnavigation.BottomNavigationView.OnNavigationItemReselectedListener)' is deprecated
I am searching everywhere for this, but there is no website that shows the latest & updated way to do this.
What is the latest way to create a proper BottomNavigtionView? Thanks in Advance