1

Can we parse a array element and a value from a android array use in xml layouts.

<string-array name="country_arrays">

    <item>ABC</item>
    <item>DEF</item>
    <item>FHI</item>
    <item>JKL</item>

</string-array>

in this array we can parse only String values but I want to parse a id too attached to each strings. In HTML we can parse a value attribute with a HTML element. I don't know whether this can be done with Android but if it is possible it will reduce lot of work, please help me to correct this.

Dipak Keshariya
  • 22,193
  • 18
  • 76
  • 128
newday
  • 3,842
  • 10
  • 54
  • 79

1 Answers1

1

No it is impossible, but you can use id when you load array into you java code.

Andrew
  • 266
  • 6
  • 18