i have this question about get string values without use an string-array on xml, i just don’t know if its possible.
My file.xml can have both this
<resources>
<string name="test1"></string>
<string name="test2"></string>
</resources>
and this:
<resources>
<string name="test1"></string>
</resources>
Is there any way to get the values programatically, without an array.
The problem is, i can’t do this:
R.string.test1;
R.string.test2;
Because not always i have the “test2” string. Is there any way to get all the values dinamically?
Thanks.
You could receive the string with its name (instead of its id):