I have create following structure. Here levels are up to 4 and groups are up to 6 same xml file structure.But i cannot access as level1 -> group1-> first item, which has also to item. Here total level has 4 and each level has 6 individual group and each individual group has 10 individual items.
<resources>
<string-array name="level1">
<item>
<string-array name="group1">
<item>
<string-array>
<item>the</item>
<item>the little boy</item>
</string-array>
</item>
<item>
<string-array>
<item>a</item>
<item>a good boy</item>
</string-array>
</item>
</string-array>
</item>
<item>
<string-array name="group2">
<item>
<string-array>
<item>he</item>
<item>he is it</item>
</string-array>
</item>
<item>
<string-array>
<item>i</item>
<item>i can go</item>
</string-array>
...
</item>
...
</string-array>
...
</item>
...
</string-array>
Here some code, that i try....
final String levels []=getResources().getStringArray(R.array.level);
final TextView tw=(TextView)findViewById(R.id.txtWord);
String group1=levels[0];
final String groups []=getResources().getStringArray(R.array.group);
String item1=groups[0];
tw.setText(item1);
So, would you please give me any ideas behind this problem. My ultimate goal is, Choose Level1->Group1-> Then Click the next button and show up 1 word at time and repeatedly(Never finish or circular way).