Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.8k views
in Technique[技术] by (71.8m points)

string array in string.xml in Android

I want to create a string array in string.xml in values folder for my android application. How to do this.. can anybody help..

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <string-array name="my_array">
        <item>string1</item>
        <item>string2</item>
        <item>string3</item>
    </string-array>
</resources>

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...