Skip to content Skip to sidebar Skip to footer

Reference A Specific Item In A From A Preferences Xml?

Assuming I have a string array defined as: not very uniquenot very unique

Solution 1:

Well no, there is no way, but you could do something like this:

<string name="mystring_1">awesome string is awesome</string>
<stringname="mystring_2">even more awesome string</string><string-arrayname="mystrings"><item>@string/mystring_1</item><item>@string/mystring_2</item></string-array>

So you basically reference another string in your resources, that is referenced in your string array. ;)

Post a Comment for "Reference A Specific Item In A From A Preferences Xml?"