I've got an Android app where in each activity I've got the same custom ActionBar (just a RelativeLayout), which holds the logo and some buttons.
The problem is that for each activity, the buttons are different and interact with the views inside the current activity.
I've started by creating a custom view which I can put in every activity layout, but it seems that this is not the best solution - as the custom ActionBar will have to hold all the interactions with all the views and will have to access the layout itself.
What would be the right way to go about this? To create a custom Actionbar which has some common design on all activities and some different functionality on each activity.
Thanks