儲存ArrayList至SharedPreferences
其中ArrayList中每個元素為String
對應的取出操作為:
儲存ArrayList至SharedPreferences,其中list的每個元素為自定義對象
1 首先将自定義對象序列化
其次,将list轉為json,即可儲存到SharedPreferences中
<code>}</code>
<code></code>
<code>本文轉自 一點點征服 部落格園部落格,原文連結:</code>http://www.cnblogs.com/ldq2016/p/6165513.html,如需轉載請自行聯系原作者