Parcelable相较于Serializable的效率更高 public class ChargeMode implements Parcelable{ public String name; public int playway; public String price; public String validTime; public ChargeMode(){ } private ChargeMode(Parcel in){ name = in.readString(); playway…
此文转载自http://www.cnblogs.com/renqingping/archive/2012/10/25/Parcelable.html 1. Parcelable接口 Interface for classes whose instances can be written to and restored from a Parcel. Classes implementing the Parcelable interface must also have a static field…