-1

我想做这样的事情:

<resources>
    <array name="foo">
        <item>Foo!</item>
        <array name="bar">
            <item>Bar!</item>
            <item>Baz!</item>
        </array>
    </array>
</resources>

对此有任何支持吗?还是我必须编写自己的 xml 解析器?

4

1 回答 1

0

You cannot use nested resource arrays like you have given as an example. It is however an option to make a one-dimensional array containing JSON or XML documents representing an array as each item. You will have to parse these arrays on your own though.

于 2013-10-01T13:24:01.823 回答