Code example for Parcel

Methods: readFloat

0
    private static class SavedState extends BaseSavedState {
        float ukuran;
         
        public SavedState(Parcel source) {
            super(source);
            ukuran = source.readFloat();
        } 
 
        @Override 
        public void writeToParcel(Parcel dest, int flags) {
            super.writeToParcel(dest, flags);
            dest.writeFloat(ukuran);
        } 
 
        public SavedState(Parcelable superState) {
            super(superState);
        } 
 
        @SuppressWarnings("unused") 
		public static final Parcelable.Creator<SavedState> CREATOR = new Parcelable.Creator<SavedState>() {
            @Override public SavedState createFromParcel(Parcel in) {