Skip to content

Latest commit

 

History

History
19 lines (16 loc) · 440 Bytes

string-array-in-xml.md

File metadata and controls

19 lines (16 loc) · 440 Bytes

String array in XML

You can create an array in strings.xml file or any other xml file (arrays.xml?) like this:

<resources>
    <string-array name="listArray">
        <item>Headings</item>
        <item>Headings and Details</item>
        <item>All Data</item>
    </string-array>
    <string-array name="listValues">
        <item>1</item>
        <item>2</item>
        <item>3</item>
    </string-array>
</resources>