Okay here, I was told to make a golf score card app, but I’m stuck as how I implement the scoring per holes.
In golf, each hole has its own scoring and the ones I’m making the app for has as much as 27 holes per game.
I don’t know whether I should make the 27 Activities for the 27 Holes
or
Use one Activity and ViewFlip with 27 different identical layouts for the whole thing.
Now I just want to know which is the best idea in tackling this problem
The layout for each hole is the same(I assume) so make a single activity with that layout and when it’s time to go to the next hole score just update the data in that layout. Even if the layouts for different holes are a little different you still should use a single layout that you update(and of course modify it dynamically).
Don’t use a
ViewFlipperif you plan to flip between 27 identical layouts.