My application consists of a tab layout with six tabs. Each tab represents a player in a game.
I would like the activities within each tab to contain the exact same XML layout and code as the activities in the other tabs. Each player will get access to the same widgets and input fields.
Is there a way to write one activity and have each tab use that activity as a template? I am trying to avoid copying the code for the six activities.
Why not just create a parent activity to setcontentview(int resourceId,). That way you can write all the shared code inside the parent and just set all of your activities to extend your parent.
Parent Class:
All Other Activities