Code example for Parcel

Methods: writeFloatwriteInt

0
		} 
 
		@Override 
		public void writeToParcel(Parcel out, int flags) {
			super.writeToParcel(out, flags);
			out.writeFloat(radius);
			out.writeInt(isFlingEnabled ? 1 : 0);
			out.writeInt(centerX);
			out.writeInt(centerY);
		} 
 
		public static final Parcelable.Creator<SavedState> CREATOR = new Parcelable.Creator<SavedState>() {
			@Override 
			public SavedState createFromParcel(Parcel in) { 
				return new SavedState(in); 
			} 
 
			@Override 
			public SavedState[] newArray(int size) { 
				return new SavedState[size]; 
3
CodeRank