Drawable's UI?

Former Member
Former Member
Just curious if there are any tools or anything to facilitate Drawables, such as the Nebraska watch face and the Train samples use.

All I see if basically just a plug and chug brute force of constructing the .xml file. And the UI doesn't seem to give any intelli-sense as far as I see.

That is I see Gfx.COLOR_RED used as a color, and if I go into an MC file I can get some intelli-sense to see the available colors, but in the XML construction view I get no help. Also for shapes what are my options, are they enumerated somewhere?
  • Former Member
    Former Member over 10 years ago
    The drawable system is a bit crude at the moment but the idea was to design something that could be built upon in the future. As you alluded to it pretty much just abstracts the Monkey C code used to draw a shape into a XML file.

    There is some documentation for the drawable system. Check out the User Interface section of the Programmers Guide (which is located at <sdk_root>/doc/Monkey C Programmers Guide.pdf). Hopefully that will answer any questions you have about valid values.
  • I was wondering about this also.
    Thanks Ken.

    Looking forward to having something worth showing off soon.
  • Former Member
    Former Member over 10 years ago
    Well I ended up abandoning the drawable list because it was just too big a pain. I wanted me image to be completely scalable based on the dimensions of the display, which meant a handful of variables I needed to store and reference, which wasn't possible in the drawable list. I ended up doing it in code and it was much faster and easier.

    As you can see my priority was to take the watch face example and get it looking MUCH better ;)


  • I'm currently toying with drawables too. It looks like setLayout() should be called with your list of drawables as defined in the xml, and you can tweak them as you see fit in there. Additionally, it appears that you can have resources that are unique to each device that you support, so you could have a resource that has a drawables list for a fr920xt and another for the round watch.