当前位置: 首页>>代码示例>>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;未经允许,请勿转载。