简体   繁体   中英

Android: How can I store custom objects inside ArrayList in strings.xml

So I want to create an ArrayList of custom objects or custom object properties inside the strings.xml file. I want to store them there because I need them as resources for my app. Also is that a good idea? If I store let's say approx 1000 items inside that ArrayList. Would that make my application a lot more slower? If yes, what is the best way to store them? Thanks in advance :)

1 seems to be simple types

2 then serialize

3 store in file (binary, no xml)

4 read the file

5 deserialize

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM