Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

string array in string.xml in Android

Tags:

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..

like image 401
Sudipta Som Avatar asked Jun 13 '26 09:06

Sudipta Som


1 Answers

<?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>
like image 122
Tyler Treat Avatar answered Jun 14 '26 23:06

Tyler Treat



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!