There are typos/bugs in the example code:
<setting title="@Strings.activityType"> <settingConfig id="activityType" type="list"> <listEntry value=0>@Strings.Running</listEntry> <listEntry value=1>@Strings.Cycling</listEntry> <listEntry value=2>@Strings.Swimming</listEntry> </settingConfig> </setting>
value=0 should be value="0" etc. But after fixing the typos, the compiler rejects it saying that the setting requires a type... which makes sense.
With non array types, the property determines the type, but here, the compiler needs to be told. Adding type="number" fixes that.
But then there's an issue with the display (in the simulator at least). When I add a new array with a "list" setting config (like the above),
I get to add it via a dropdown which shows the names of the list items (as you would expect). But once I've added it, only the list item's *value* gets displayed.
So the user just sees meaningless numbers, rather than the names they chose from the list. I've tried to post screen shots, but I'm getting errors when I do...