Android系统中Parcelable和Serializable的区别,自动化实现Parcelable接口的插件

 

 

Parcelable和Serializable的区别

参考地址:http://greenrobot.me/devpost/android-parcelable-serializable/

 

 

由于最终的区别在于Parcelable的序列化速度远远高于Serializable,故本人更倾向于使用Parcelable,但是Parcelable接口实现起来较为复杂,所以很多人不愿意写。

但是在Android Studio和Idea中有自动生成Parcelable代码模板的插件,相当实用。

可参考如下地址使用该插件:http://blog.csdn.net/kroclin/article/details/40902721?utm_source=tuicool

 

博主亲测该插件可用,而且使用很方便

posted @ 2015-03-31 11:04  指鹿为驴  阅读(219)  评论(0编辑  收藏  举报