I'm new to Android development and I wanted to ask what is the best solution here.
In my activity_main.xml I have some content and on the bottom there is <android.support.design.widget.BottomNavigationView>
I set some icons and created listener for it. The Navigation contains simple Settings icon, and when it's clicked it should start the SettingsActivity. This navigation shoud be everywhere in the app.
Here comes my question : What is the best approach when I don't want to implement this BottomNavigationView in every single activity, implementing the same listener over and over again in every activity ? I've heard of using fragments instead of activity but these are now deprecated right? There must be a better way, implementing the Navigation over and over again with exact same code can't be right approach.