Code example for Parcel

Methods: writeFloatwriteInt

0
		} 
 
		@Override 
		public void writeToParcel(Parcel out, int flags) {
			super.writeToParcel(out, flags);
			out.writeInt(gravity);
			out.writeFloat(radius);
			out.writeFloat(currentRadius);
			out.writeInt(isExpand);
			out.writeInt(animationOffset);
			out.writeInt(duration);
		} 
 
		public static final Parcelable.Creator<SavedState> CREATOR = new Parcelable.Creator<SavedState>() {
			@Override 
			public SavedState createFromParcel(Parcel in) { 
				return new SavedState(in); 
			} 
 
			@Override 
2
CodeRank