Maybe it is difficult to understand the title but let me explain. So I am working on an sports application. The main idea - I will parse official website which contains match schedule, results, stats, team info etc. Now I am working on the UI before I make functions for parsing and storage of data. It should look something like this: ActivityTeams will contain the following buttons: Team 1 Team 2 Team 3 ...
For every team make a new activity but inside of these activities I will need the same buttons - Team info, stats, results etc. So it will be appropriate to make these activities only for once and just somehow load different data on them. If the path will be Teams > Team 1> Stats the data on display will be different than if it will be Teams > Team 2> Stats. How can I do this? I understand that I can open the same activity from every other activity I would like to but how to make the function for displaying different data in the same activity depending on the path? Any tips, suggestions? Thanks!