I have an array of objects and want to represent them in an resource array. The class is defined like this:
class MyItem{
private int id;
private int price;
private String name;
private String desc;
//getters and setters here
}
not sure about the syntax... but I tried this way:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<array name="Category01">
<item>
<array>
<item name="name">Name</item>
<item name="desc">Description</item>
<item name="imageId">0000000</item>
<item name="price">100</item>
</array>
</item>
</array>
</resources>
not working... how to represent my array of objects in resources ?? thanks