Code example for Parcel

Methods: readFloat

0
        public MarkerInfo(float color) {
            mHue = color;
        } 
 
        private MarkerInfo(Parcel in) {
            mHue = in.readFloat();
        } 
 
        @Override 
        public int describeContents() { 
            return 0; 
        } 
 
        @Override 
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeFloat(mHue);
        } 
    } 
 
    /** 
     * Example of a custom {@code MapFragment} showing how the position of a marker and other custom