Notifications-style menu

Hi, everyone!

I'm still new to this whole Garmin Dev scene and am having problems finding resources. So if someone could point me in the right direction, I'd be very happy :)

Anyway, what I'm trying to do is Notification-widget like menu. So on pressing `Set` while on widget a new view would pop-up with a list of items. Those items would have a couple of strings, maybe an icon. So very notification screen like.

A very simple way I found was the `Menu` class but that only allows for a string as far as I know. So is there another (for a lack of better word) list-view I could use?

Even something like you get in the Workouts screen would do:
https://media.dcrainmaker.com/images/2017/03/Garmin-FR935-Run-Course_thumb1.jpg

Thanks,
Miha
  • In CIQ, you have an easy access to a native menu. A very simple one - no icons, etc. Just text. You can pre define the menu or build it dynamically with myMenu.addItem().

    Anything else , you have to build yourself, like if you wanted icons on the menu. People have asked about doing that in the past, and in the forum you may find some simple code to start with in the forum.

    As far as pressing start/enter or menu, you need to add a delegate to your widget to catch that. The "input" sample in the SDK will show you that.
  • Anything else , you have to build yourself, like if you wanted icons on the menu. People have asked about doing that in the past, and in the forum you may find some simple code to start with in the forum.


    Too bad. Looks like I'll have to waddle through the forum to find something of use. Too bad something like this is not included since I see it used throughout Garmin own apps so they def have something like that internally :/
  • Unless you are talking about Garmin apps which you downloaded from the app store, the native Garmin Apps are not written in CIQ. So, they may not have code for what you wish to replicate. But it would be nice if Garmin supplied a library of standard code so different CIQ apps could have the same look and feel as each other and as the native apps.
  • Don't forget that native stuff isn't written using CIQ, and there will be cases where the native stuff has something that's not available in CIQ.

    Also, using the menu that is available will be cheaper memory wise than doing your own version, and also will look similar to the other menus native for that device. The menu you see in the sim is a generic one so it doesn't look the same as it does on an actual device, and it can look far different on a device than in the sim. If you do your own, you may want to consider how other menus look on a specific device.
  • the native Garmin Apps are not written in CIQ


    Ah, I did not know that. No wonder CIQ is in the state it's in, if they don't have to dogfood. That's an unfortunate decision on their end I believe :/
  • gasterpod - I guess I was posting at right about the same time! The thing you get into when you "roll your own" for something like a menu, is you likely want similar look/actions to other menus on that device, and worry less about that the menu looks/acts the same as other CIQ apps on different devices. menus in the sim generally don't actually look like they do on devices. (the vivoactive is probably the most visible as to the difference)

    Menues are pretty device specific and the sim is just a generic case of those.
  • using the menu that is available will be cheaper memory wise than doing your own version


    Yeah, I realize that, that's why I was asking if something like that exists already. The problem with the menu is that it only allows one string - title. Not even subtitle or anything like that. The information density is really low which does not fare well with my app :/
  • To be fair, we do eat a lot of our own dog food:

    https://apps.garmin.com/en-US/developer/e1683f31-54fe-45d9-9aa8-cba39fe7fd1f/apps

    The native apps existed well before Connect IQ did, and so far there hasn't been a compelling reason to re-write them as CIQ apps. Plus, they provide the framework within which Connect IQ data fields run. :) I believe we're looking at ways to improve some of the UI elements, like menus, right now.

    Ah, I did not know that. No wonder CIQ is in the state it's in, if they don't have to dogfood. That's an unfortunate decision on their end I believe :/
  • To be fair, we do eat a lot of our own dog food:

    https://apps.garmin.com/en-US/developer/e1683f31-54fe-45d9-9aa8-cba39fe7fd1f/apps

    Great!

    I believe we're looking at ways to improve some of the UI elements, like menus, right now.


    That's awesome! Keep us posted :)