I'm fairly new to object-oriented programming, and I'm really interested in learning it correctly. My problem is this:
I am trying to create a TabActivity
which plots the user's data over time in each tab's content. Then only thing the tabs are going to control is the timespan of the graph. (i.e. one tab for 'past year', one for 'past month', one for 'all time', etc). As you can see, the layout used for each tab will be identical. The code used for each tab will only differ by a couple lines... (the starting and ending date of the x-axis).
I'm not sure how I can pull this off in a well-designed, object-o fashion. Any ideas?