Hi all,
I've been developing a very simple Connect IQ widget for my Fenix 3 - it's a timer that lets you set the timer length, as well as to set a number of repeats for that timer (e.g., 1 minute for 30 iterations). I've run into a few problems that I've developed kludgy work-arounds for but I'm curious if others have any ideas. Primarily they revolve around menus:
From the main screen of my app, pressing the Menu button brings up an options menu that lets you change the timer length, number of repeats, and vibration/tone preferences. One big question I had is - when a user navigates to the Menu, then chooses for example to alter the timer length (via a NumberPicker) - when they are brought back to the Options Menu, I'd like to update the displayed menu to show the new length
For example, if when they first came to the Menu, it showed the following 3 items:
- "1:00"
- "30 times"
- "Vibration only"
and then they change the length to 2:00, I'd like the Menu to display as follows when the NumberPicker bounces them back to the Menu (and similarly for the other Menu options that can be changed)
- "2:00"
- "30 times"
- "Vibration only"
What I'm currently doing is, in the various delegates (e.g., the NumberPickerDelegate), I pop the current view (the old menu) and push the a new Menu with the updated settings. It works but one very minor issue is that it then brings me back up to the top entry in the Menu every time (whereas on the stock Garmin menus, if you select form a NumberPicker and press Enter, when you go back, your original item is selected vs. the top item in the menu).
Is there any way to get the Menus to behave like the stock Garmin menus (a good example is the stock Timer app - when you change any settings it brings you back to the Menu with the original item selected AND the Menu item's display updated to reflect your changes).
Also - some Garmin menus display a two line display with the top line bolded and the next line unbolded e.g.,:
Notification
Vibration
Is there any way to currently achieve the same effect?
Lastly - unrelated to Menus - is there a generic NumberPicker that just lets you select an integer from 1 to X? None of the WatchUi.NUMBER_PICKER_ options seem to offer what I wanted (I thought the Calorie one might be a work around but on the Fenix 3 it increments by 50 up or down).
Thanks for the help.