List/Menu decorations?

Former Member
Former Member
Hi everyone,

I have recently started working on my first app (widget, actually). The idea is to control my wireless bulbs (Lifx/Hue) via my Garmin watch (Vivoactive HR).

It all works quite nicely, but I am not quite satisfied with the UI yet. What I would like for example is a "beautiful list", similar to the activity list or the notifications widget.
I.e. a list of items that are styleable, for example with an icon.
Since the built-in widgets mentioned above have that, I suppose it should be do-able, but I have no idea how. Using menus is fine for the start, but they look a bit dull...

Does anyone know how this could be done?

Thanks in advance and Best Regards,

-MaximumFlo

PS: I also wonder how the did the "dismiss" button of the notification menu... I assume it's just a normal drawable, right? :)
  • native widgets and such do things outside of CIQ. Menues is about it. After that, if you want icons on lists, etc, you have to do it yourself.

    As far as the dismiss button, on a va-hr you can do screen "buttons". I do it with dc calls, where I draw the button, and then in the delegate, look for an onTap() in the area of the screen with that button. The va-hr isn't a full touch screen, in that there are 9 "touch regions", so you're a bit restricted in where and how many. See the UX Guide with the SDK as it describes that with touch devices.
  • Former Member
    Former Member over 8 years ago
    Hi Jim,

    Thanks for the quick reply, appreciate it!

    Well the idea with the button sounds promising, gonna try that :)

    After that, if you want icons on lists, etc, you have to do it yourself.


    That's what i feared... I do not really understand why they would not make such things publicly available. The developer community and therefore the products would benefit a great deal imho...

    So, if I wanted to "do it myself", how would I go about that? Is there some native code I can get my hands on?
  • The sample programs show how to draw a bitmap, either using a layout or via a direct dc.drawBitmap() call. The sample program in ${SDKROOT}/samples/Primates sample uses drawBitmap, and the Programmer's Guide covers using custom drawables and defining them in layouts.

    Travis
  • So, if I wanted to "do it myself", how would I go about that? Is there some native code I can get my hands on?


    You can only access things with the CIQ api, so nothing else is available in native code and you'll never see source for native code :) , and I don't know of any sample apps or posted code that's a good example.

    I know of a few things (mine) that were really poorly written and very application and device specific, and impossible to post so it has any meaning.. :(
  • Former Member
    Former Member over 8 years ago
    Have a look at https://github.com/davebaldwin/Dmenu for an example of how to implement more sophisticated menus. It may give you some ideas for what you want to do.

    Dave.