TypeArray in Android - How to store custom objects in xml and retrieve them?

后端 未结 3 1563
逝去的感伤
逝去的感伤 2020-12-05 10:41

I have a class like

public class CountryVO {
    private String countryCode;
    private String countryName;
    private Drawable countryFlag;

    public St         


        
3条回答
  •  孤街浪徒
    2020-12-05 11:07

    You need to parse the xml before trying to store it in your class. I would recommend that you use the SAX API, you can find a tutorial on it here. Hope this helps!

提交回复
热议问题