I also did a little UI change on the landscape orientation of the puzzle view. I moved the difficulty and timer over above the buttons and allowed the puzzle grid itself to take up more space which makes it that much bigger in that view. (It was a bit small before). The grid is always square and measures itself by the smaller dimension (width or height) and draws according to that since it's different for portrait and landscape views.
So, before:
![]() |
| Before |
![]() |
| After |
Now the big issue is expanding the timer persistence and tying in the completion times into a sorted list with difficulty to feed into the history.
Also fixed today was the puzzle generation in the activity's onCreate - activities run this method multiple times, so it was generating unnecessary puzzles when the orientation changed and other times it didn't need to be. I moved where the puzzle was generating so it doesn't do that, and the orientation changes process much faster than it was. The issue now is that it seems like it hangs when the puzzle is generated, so eventually a load spinner or some sort of loading item will be put in, but that isn't as high a priority as the rest of the timer.


No comments:
Post a Comment