當前位置: 首頁>>代碼示例>>Java>>正文


Java Parcel.writeFloat方法代碼示例

本文整理匯總了Java中android.os.Parcel.writeFloat方法的典型用法代碼示例。如果您正苦於以下問題:Java Parcel.writeFloat方法的具體用法?Java Parcel.writeFloat怎麽用?Java Parcel.writeFloat使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在android.os.Parcel的用法示例。


在下文中一共展示了Parcel.writeFloat方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: writeToParcel

import android.os.Parcel; //導入方法依賴的package包/類
@Override
public void writeToParcel(Parcel parcel, int i) {
    parcel.writeString(title);
    parcel.writeString(description);
    parcel.writeString(descriptionLong);
    parcel.writeString(language);
    parcel.writeString(brand);
    parcel.writeFloatArray(catalogNumbers);
    parcel.writeParcelable(customIds, i);
    parcel.writeStringArray(keywords);
    parcel.writeStringArray(categories);
    parcel.writeString(availability);
    parcel.writeString(groupId);
    parcel.writeString(price);
    parcel.writeString(salePrice);
    parcel.writeParcelable(links, i);
    parcel.writeStringArray(images);
    parcel.writeString(metadata);
    parcel.writeString(sku);
    parcel.writeFloat(score);
}
 
開發者ID:nyris,項目名稱:Nyris.IMX.Android,代碼行數:22,代碼來源:Offer.java

示例2: writeToParcel

import android.os.Parcel; //導入方法依賴的package包/類
@Override
public void writeToParcel(Parcel out, int flags) {
    super.writeToParcel(out, flags);
    out.writeFloat(this.mCurrentProgress);
    out.writeFloat(this.mTargetProgress);
    out.writeInt((mProgressBarEnabled ? 1 : 0));
    out.writeFloat(this.mSpinSpeed);
    out.writeInt(this.mProgress);
    out.writeInt(this.mProgressWidth);
    out.writeInt(this.mProgressColor);
    out.writeInt(this.mProgressBackgroundColor);
    out.writeInt(this.mProgressBarVisibilityChanged ? 1 : 0);
    out.writeInt(this.mProgressIndeterminate ? 1 : 0);
    out.writeInt(this.mShouldProgressIndeterminate ? 1 : 0);
    out.writeInt(this.mShouldSetProgress ? 1 : 0);
    out.writeInt(this.mAnimateProgress ? 1 : 0);
    out.writeInt(this.mShowProgressBackground ? 1 : 0);
}
 
開發者ID:Blankeer,項目名稱:MDWechat,代碼行數:19,代碼來源:FloatingActionButton.java

示例3: a

import android.os.Parcel; //導入方法依賴的package包/類
public final void a(int i, long j, boolean z, float f, double d, String str) {
    int i2 = 1;
    Parcel obtain = Parcel.obtain();
    Parcel obtain2 = Parcel.obtain();
    try {
        obtain.writeInterfaceToken(z);
        obtain.writeInt(i);
        obtain.writeLong(j);
        if (!z) {
            i2 = 0;
        }
        obtain.writeInt(i2);
        obtain.writeFloat(f);
        obtain.writeDouble(d);
        obtain.writeString(str);
        this.a.transact(1, obtain, obtain2, 0);
        obtain2.readException();
    } finally {
        obtain2.recycle();
        obtain.recycle();
    }
}
 
開發者ID:JackChan1999,項目名稱:letv,代碼行數:23,代碼來源:d.java

示例4: writeToParcel

import android.os.Parcel; //導入方法依賴的package包/類
@Override
public void writeToParcel(Parcel out, int flags) {

    super.writeToParcel(out, flags);
    out.writeFloat(this.mProgress);
    out.writeFloat(this.mTargetProgress);
    out.writeByte((byte) (isSpinning ? 1 : 0));
    out.writeFloat(this.spinSpeed);
    out.writeInt(this.barWidth);
    out.writeInt(this.barColor);
    out.writeInt(this.rimWidth);
    out.writeInt(this.rimColor);
    out.writeInt(this.circleRadius);
    out.writeByte((byte) (linearProgress ? 1 : 0));
    out.writeByte((byte) (fillRadius ? 1 : 0));
}
 
開發者ID:HotBitmapGG,項目名稱:Acg,代碼行數:17,代碼來源:CircleProgressView.java

示例5: writeToParcel

import android.os.Parcel; //導入方法依賴的package包/類
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(mUser.getCurrentTeam());
    dest.writeString(mUser.getUserID());
    dest.writeString(mUser.getCurrentRole());
    dest.writeString(mUser.getCurrentStatus());
    dest.writeString(mUser.getEmail());
    dest.writeString(mUser.getToken());
    dest.writeFloat(mUser.getLatitude());
    dest.writeFloat(mUser.getLongitude());
}
 
開發者ID:panzerama,項目名稱:Dispatch,代碼行數:12,代碼來源:UserParcel.java

示例6: writeToParcel

import android.os.Parcel; //導入方法依賴的package包/類
@Override
public void writeToParcel(Parcel out, int flags) {
    super.writeToParcel(out, flags);
    out.writeFloat(this.mProgress);
    out.writeFloat(this.mTargetProgress);
    out.writeByte((byte) (isSpinning ? 1 : 0));
    out.writeFloat(this.spinSpeed);
    out.writeInt(this.barWidth);
    out.writeInt(this.barColor);
    out.writeInt(this.rimWidth);
    out.writeInt(this.rimColor);
    out.writeInt(this.circleRadius);
    out.writeByte((byte) (linearProgress ? 1 : 0));
    out.writeByte((byte) (fillRadius ? 1 : 0));
}
 
開發者ID:junchenChow,項目名稱:exciting-app,代碼行數:16,代碼來源:ProgressWheel.java

示例7: writeToParcel

import android.os.Parcel; //導入方法依賴的package包/類
/**
 * Write this viewport to the specified parcel. To restore a viewport from a parcel, use readFromParcel()
 *
 * @param out The parcel to write the viewport's coordinates into
 */
public void writeToParcel(Parcel out, int flags) {
    out.writeFloat(left);
    out.writeFloat(top);
    out.writeFloat(right);
    out.writeFloat(bottom);
}
 
開發者ID:weiwenqiang,項目名稱:GitHub,代碼行數:12,代碼來源:Viewport.java

示例8: writeToParcel

import android.os.Parcel; //導入方法依賴的package包/類
public void writeToParcel(Parcel dest, int flags) {
    dest.writeByte(this.is_times ? (byte) 1 : (byte) 0);
    dest.writeInt(this.id);
    dest.writeFloat(this.rate);
    dest.writeString(this.video_url);
    dest.writeParcelable(this.info, 0);
    dest.writeString(this.name);
    dest.writeInt(this.number);
    dest.writeInt(this.rest);
    dest.writeInt(this.group_count);
    dest.writeString(this.training_part);
    dest.writeString(this.audio_url);
    dest.writeString(this.thumbnail);
}
 
開發者ID:JackChan1999,項目名稱:boohee_v5.6,代碼行數:15,代碼來源:Mention.java

示例9: writeToParcel

import android.os.Parcel; //導入方法依賴的package包/類
@Override
public void writeToParcel(Parcel parcel, int i) {
    parcel.writeByte((byte) (image ? 1 : 0));
    parcel.writeTypedList(selectedList);
    parcel.writeByte((byte) (radio ? 1 : 0));
    parcel.writeByte((byte) (crop ? 1 : 0));
    parcel.writeInt(maxSize);
    parcel.writeByte((byte) (hideBottomControls ? 1 : 0));
    parcel.writeInt(compressionQuality);
    parcel.writeIntArray(gestures);
    parcel.writeInt(maxBitmapSize);
    parcel.writeFloat(maxScaleMultiplier);
    parcel.writeFloat(aspectRatioX);
    parcel.writeFloat(aspectRatioY);
    parcel.writeInt(selectedByDefault);
    parcel.writeTypedArray(aspectRatio, i);
    parcel.writeByte((byte) (freestyleCropEnabled ? 1 : 0));
    parcel.writeByte((byte) (ovalDimmedLayer ? 1 : 0));
    parcel.writeInt(maxResultWidth);
    parcel.writeInt(maxResultHeight);
    parcel.writeInt(imageLoaderType);
    parcel.writeInt(imageConfig);
    parcel.writeByte((byte) (hideCamera ? 1 : 0));
    parcel.writeByte((byte) (isPlayGif ? 1 : 0));
    parcel.writeByte((byte) (hidePreview ? 1 : 0));
    parcel.writeByte((byte) (isVideoPreview ? 1 : 0));
}
 
開發者ID:Loofer,項目名稱:Watermark,代碼行數:28,代碼來源:Configuration.java

示例10: writeToParcel

import android.os.Parcel; //導入方法依賴的package包/類
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(movieId);
    dest.writeInt(movieVoteCount);
    dest.writeFloat(movieVoteAverage);
    dest.writeString(movieTitle);
    dest.writeString(movieOverview);
    dest.writeString(posterPath);
    dest.writeString(releaseDate);
    dest.writeString(backdropPath);
    dest.writeFloat(moviePopularity);
    dest.writeByte((byte) (isWatchLater ? 0 : 1));
    dest.writeByte((byte) (isNotified ? 0 : 1));
}
 
開發者ID:hsm59,項目名稱:WatchIt,代碼行數:15,代碼來源:Movie.java

示例11: writeToParcel

import android.os.Parcel; //導入方法依賴的package包/類
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(this.id);
    dest.writeString(this.record_on);
    dest.writeFloat(this.duration);
    dest.writeInt(this.activity_id);
    dest.writeString(this.activity_name);
    dest.writeFloat(this.calory);
    dest.writeString(this.thumb_img_url);
    dest.writeString(this.unit_name);
    dest.writeFloat(this.mets);
    dest.writeByte(this.isChecked ? (byte) 1 : (byte) 0);
}
 
開發者ID:JackChan1999,項目名稱:boohee_v5.6,代碼行數:13,代碼來源:RecordSport.java

示例12: writeToParcel

import android.os.Parcel; //導入方法依賴的package包/類
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(this.mState);
    dest.writeLong(this.mPosition);
    dest.writeFloat(this.mSpeed);
    dest.writeLong(this.mUpdateTime);
    dest.writeLong(this.mBufferedPosition);
    dest.writeLong(this.mActions);
    TextUtils.writeToParcel(this.mErrorMessage, dest, flags);
    dest.writeTypedList(this.mCustomActions);
    dest.writeLong(this.mActiveItemId);
    dest.writeBundle(this.mExtras);
}
 
開發者ID:JackChan1999,項目名稱:boohee_v5.6,代碼行數:13,代碼來源:PlaybackStateCompat.java

示例13: writeToParcel

import android.os.Parcel; //導入方法依賴的package包/類
@Override public void writeToParcel(Parcel out, int flags) {
  super.writeToParcel(out, flags);
  out.writeFloat(this.mProgress);
  out.writeFloat(this.mTargetProgress);
  out.writeByte((byte) (isSpinning ? 1 : 0));
  out.writeFloat(this.spinSpeed);
  out.writeInt(this.barWidth);
  out.writeInt(this.barColor);
  out.writeInt(this.rimWidth);
  out.writeInt(this.rimColor);
  out.writeInt(this.circleRadius);
  out.writeByte((byte) (linearProgress ? 1 : 0));
  out.writeByte((byte) (fillRadius ? 1 : 0));
}
 
開發者ID:maning0303,項目名稱:MNProgressHUD,代碼行數:15,代碼來源:MProgressWheel.java

示例14: writeToParcel

import android.os.Parcel; //導入方法依賴的package包/類
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeFloat(this.strokeInset);
    dest.writeFloat(this.strokeWidth);
    dest.writeFloat(this.ringCenterRadius);
    dest.writeFloat(this.start);
    dest.writeFloat(this.end);
    dest.writeFloat(this.sweep);
    dest.writeFloat(this.sweeping);
    dest.writeFloat(this.starting);
    dest.writeFloat(this.ending);
    dest.writeInt(this.color);
}
 
開發者ID:zwmlibs,項目名稱:BookReader-master,代碼行數:14,代碼來源:LoadingView.java

示例15: writeToParcel

import android.os.Parcel; //導入方法依賴的package包/類
@Override
public void writeToParcel(Parcel dest, int flags) {
	dest.writeFloat(minAngle);
	dest.writeFloat(maxAngle);
	dest.writeFloat(startingAngle);
	dest.writeFloat(currentAngle);
}
 
開發者ID:usura-software-industries,項目名稱:UsuraKnob,代碼行數:8,代碼來源:KnobState.java


注:本文中的android.os.Parcel.writeFloat方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。