本文整理了Java中android.os.Parcel.readBooleanArray()
方法的一些代码示例,展示了Parcel.readBooleanArray()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Parcel.readBooleanArray()
方法的具体详情如下:
包路径:android.os.Parcel
类名称:Parcel
方法名:readBooleanArray
暂无
代码示例来源:origin: johncarl81/parceler
@Override
public boolean[] fromParcel(Parcel parcel) {
boolean[] array;
int size = parcel.readInt();
if (size == NULL) {
array = null;
} else {
array = new boolean[size];
parcel.readBooleanArray(array);
}
return array;
}
}
代码示例来源:origin: codezjx/AndLinker
@Override
public void readFromParcel(Parcel in, boolean[] val) {
in.readBooleanArray(val);
}
代码示例来源:origin: org.parceler/parceler-api
@Override
public boolean[] fromParcel(Parcel parcel) {
boolean[] array;
int size = parcel.readInt();
if (size == NULL) {
array = null;
} else {
array = new boolean[size];
parcel.readBooleanArray(array);
}
return array;
}
}
代码示例来源:origin: zendesk/belvedere
MediaIntent(Parcel in) {
this.requestCode = in.readInt();
this.intent = in.readParcelable(MediaIntent.class.getClassLoader());
this.permission = in.readString();
boolean[] isAvailable = new boolean[1];
in.readBooleanArray(isAvailable);
this.isAvailable = isAvailable[0];
this.target = in.readInt();
}
}
代码示例来源:origin: Cleveroad/LoopBar
@SuppressWarnings("unused")
private SavedState(Parcel parcel) {
super(parcel);
mCurrentItemPosition = parcel.readInt();
@GravityAttr
int gravity = parcel.readInt();
mSelectionGravity = gravity;
@ScrollAttr
int scrollMode = parcel.readInt();
mScrollMode = scrollMode;
boolean[] booleanValues = new boolean[1];
parcel.readBooleanArray(booleanValues);
mIsInfinite = booleanValues[0];
mAdapterSize = parcel.readInt();
}
代码示例来源:origin: SecUSo/privacy-friendly-sudoku
/** recreate object from parcel */
private GameCell(Parcel in) {
row = in.readInt();
col = in.readInt();
value = in.readInt();
size = in.readInt();
fixed = in.readInt() == 1;
noteCount = in.readInt();
notes = new boolean[size];
in.readBooleanArray(notes);
removeAllListeners();
}
代码示例来源:origin: stackoverflow.com
protected QuestionOptions(Parcel in) {
boolean[] array = new boolean[1];
in.readBooleanArray (array);
timerEnabled = array[0];
digitCount = in.readInt ();
operationType = (OperationType)in.readSerializable ();
}
代码示例来源:origin: andforce/iBeebo
@SuppressWarnings("unchecked")
private SavedState(Parcel in) {
super(in);
Bundle bundle = in.readBundle();
this.ids = (TreeSet<Long>) bundle.getSerializable("ids");
this.type = (Type) bundle.getSerializable("type");
boolean[] disappearArray = new boolean[2];
in.readBooleanArray(disappearArray);
this.disappear = disappearArray[0];
this.visible = disappearArray[1];
}
代码示例来源:origin: ArturVasilov/AndroidSchool
public Movie(Parcel in) {
mId = in.readInt();
mPosterPath = in.readString();
mOverview = in.readString();
mTitle = in.readString();
mReleasedDate = in.readString();
mVoteAverage = in.readDouble();
boolean[] values = new boolean[1];
in.readBooleanArray(values);
mIsFavourite = values[0];
}
代码示例来源:origin: andforce/iBeebo
public AccountBean createFromParcel(Parcel in) {
AccountBean accountBean = new AccountBean();
accountBean.access_token = in.readString();
accountBean.expires_time = in.readLong();
accountBean.navigationPosition = in.readInt();
// uname cookie
accountBean.uname = in.readString();
accountBean.pwd = in.readString();
accountBean.cookie = in.readString();
accountBean.access_token_hack = in.readString();
accountBean.expires_time_hack = in.readLong();
accountBean.gsid = in.readString();
//
boolean[] booleans = new boolean[1];
in.readBooleanArray(booleans);
accountBean.black_magic = booleans[0];
accountBean.info = in.readParcelable(UserBean.class
.getClassLoader());
return accountBean;
}
代码示例来源:origin: andforce/iBeebo
in.readBooleanArray(booleans);
userBean.following = booleans[0];
userBean.follow_me = booleans[1];
代码示例来源:origin: andforce/iBeebo
in.readBooleanArray(booleans);
messageBean.favorited = booleans[0];
代码示例来源:origin: andforce/iBeebo
public AnimationRect createFromParcel(Parcel in) {
AnimationRect rect = new AnimationRect();
rect.scaledBitmapRect = in.readParcelable(Rect.class.getClassLoader());
rect.imageViewEntireRect = in.readParcelable(Rect.class.getClassLoader());
rect.imageViewVisibleRect = in.readParcelable(Rect.class.getClassLoader());
rect.type = in.readInt();
boolean[] booleans = new boolean[1];
in.readBooleanArray(booleans);
rect.isTotalVisible = booleans[0];
boolean[] isTotalInvisibleBooleans = new boolean[1];
in.readBooleanArray(isTotalInvisibleBooleans);
rect.isTotalInvisible = isTotalInvisibleBooleans[0];
boolean[] isScreenPortraitArray = new boolean[1];
in.readBooleanArray(isScreenPortraitArray);
rect.isScreenPortrait = isScreenPortraitArray[0];
rect.thumbnailWidthHeightRatio = in.readFloat();
rect.thumbnailWidth = in.readInt();
rect.thumbnailHeight = in.readInt();
rect.widgetWidth = in.readInt();
rect.widgetHeight = in.readInt();
rect.clipByParentRectTop = in.readFloat();
rect.clipByParentRectBottom = in.readFloat();
rect.clipByParentRectLeft = in.readFloat();
rect.clipByParentRectRight = in.readFloat();
return rect;
}
内容来源于网络,如有侵权,请联系作者删除!