Acknowledged

Cannot reference Barrel string resources in Watch Face settings.xml

According to Monkey Barrel documentation, barrel resources should be accessible in the project via the @IconLibrary.Drawables.myIcon notation.  This suggests @MyBarrel.Strings.myString would be a valid way to reference a string from the app.  This isn't working as expected when referenced inside settings.xml for the Watch Face using this barrel.

Like user  wrote in "How to reference barrel resources from app xml", I am attempting to reference a barrel's String resources inside my Watch Face's settings.XML.   I'd expect to see the actual strings, but instead I see the references.  

See screenshots:

https://www.dropbox.com/s/tei8puk0hcqx6oo/Screen%20Shot%202022-12-29%20at%201.05.39%20PM.png?dl=0

https://www.dropbox.com/s/mtkhvac605gz1hh/Screen%20Shot%202022-12-29%20at%201.05.58%20PM.png?dl=0

Parents
  • Hi Gavriel, I tried switching it as you suggested.  The same behavior happened -- the string from the barrel wasn't recognized & filled when I used it as the title for the setting.  So it appears that it's not possible to use barrel string resources in either the <listEntry> items or the "title" tag of <setting> items.  

    The other switch you suggested does work -- that's normal behavior that is working as expected: the settings.xml can reference string resources from inside the same project. 

    Also, the upload link isn't appearing anymore in this reply editor, so I have to share dropbox links again:

    Image showing the settings.xml updated to be: <setting propertyKey="@Properties.AnalogGaugeMetric2" title="@CommonData.Strings.SENSOR_O2">
    https://capture.dropbox.com/AKduGpFVtXUi6gys

    Image showing the result in the simulator:
    https://capture.dropbox.com/nAEY8ZAZ8cULRzWT

    Image showing the lack of upload link in the "insert image" in this reply editor:
    https://capture.dropbox.com/Gdr6V3DVVYAtFeTc

Comment
  • Hi Gavriel, I tried switching it as you suggested.  The same behavior happened -- the string from the barrel wasn't recognized & filled when I used it as the title for the setting.  So it appears that it's not possible to use barrel string resources in either the <listEntry> items or the "title" tag of <setting> items.  

    The other switch you suggested does work -- that's normal behavior that is working as expected: the settings.xml can reference string resources from inside the same project. 

    Also, the upload link isn't appearing anymore in this reply editor, so I have to share dropbox links again:

    Image showing the settings.xml updated to be: <setting propertyKey="@Properties.AnalogGaugeMetric2" title="@CommonData.Strings.SENSOR_O2">
    https://capture.dropbox.com/AKduGpFVtXUi6gys

    Image showing the result in the simulator:
    https://capture.dropbox.com/nAEY8ZAZ8cULRzWT

    Image showing the lack of upload link in the "insert image" in this reply editor:
    https://capture.dropbox.com/Gdr6V3DVVYAtFeTc

Children
No Data