Create array of strings in xml file Android example

Example source code for Android developers how create array of strings in *.xml file.
You can using array of strings in Spinner ( combobox – dropdown list ) or ListView etc.

<resources>
    <string-array name="colors">
        <item>red</item>
        <item>orange</item>
        <item>yellow</item>
        <item>green</item>
        <item>blue</item>
    </string-array>
</resources>
This entry was posted in Android Examples Code, Array,List,Collections and tagged , , , . Bookmark the permalink.


Comments are closed.

8,195 views