Overriding drawable for device not working

Hi

I'm writing a watch face, or rather I'm re-writing it with a bunch of settings and optimizing it, but when I add my settings for fr920xt and try to run it on the emulator it doesn't work.

I have my basic drawable called "Logo" in a file called drawables.xml in the folder resources -> drawables.
I have created a folder called resources-fr920xt that is on the same depth as resources.
In that 920xt-folder I have a file called drawables.xml with the correct polygon data.

When I run it on 920xt it renders the polygon data from the default drawables.xml

What am I doing wrong here?

Thankful for any help

Regards
Johan
  • It sounds like your file heirarchy is something like this...

    C:.
    ├───resources
    │ └───drawables
    │ drawables.xml
    │
    ├───resources-fr920xt
    │ drawables.xml
    │
    └───source
    App.mc


    For the resource to be overridden, I believe that the hierarchy has to be the same as that in the resource folder you are overriding. i.e.,

    C:.
    ├───resources
    │ └───drawables
    │ drawables.xml
    │
    ├───resources-fr920xt
    │ └───drawables
    │ drawables.xml
    │
    └───source
    App.mc


    If you have the default resource folder working for one device, you should be able to copy it, add the device-specific suffix to the folder name, and then edit the files contained within.

    Travis
  • Thanks Travis, that was probably it. I copied the resources folder with the entire sub-structure and removed files not needed and then it worked.