I have been looking for options on how to place Navigation bar common to all activities. Still can’t figure out the best way to do it. The Navigation bar should have a title for screen and a back button. Or may be two in some activities.
What is the best practice I should follow?
Thanks
You can define the navigation bar in separate header.xml layout like this:
Then include this header in the layout of all your activities:
And make sure that all your classes extend parent class that has the methods onHomeClick and onBackClick…