Create a BaseActivity
with the included layout
for its layout
with the functionality in that BaseActivity
. Then extends BaseActivity
in your other Activities
.
Doing this you can override the functions in any of your Activities
if you need more/different functionality from them. I do this so I can have a completely custom "Action Bar" in all of my Activities
. My back button, overflow button, and another image button functionality is all contained in the BaseActivity
.