本文整理匯總了Java中android.os.Parcel.writeTypedArray方法的典型用法代碼示例。如果您正苦於以下問題:Java Parcel.writeTypedArray方法的具體用法?Java Parcel.writeTypedArray怎麽用?Java Parcel.writeTypedArray使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類android.os.Parcel
的用法示例。
在下文中一共展示了Parcel.writeTypedArray方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: writeToParcel
import android.os.Parcel; //導入方法依賴的package包/類
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeString(tid);
dest.writeString(typeid);
dest.writeString(readperm);
dest.writeString(price);
dest.writeString(author);
dest.writeString(authorid);
dest.writeString(subject);
dest.writeString(dateline);
dest.writeString(lastpost);
dest.writeString(lastposter);
dest.writeString(views);
dest.writeString(replies);
dest.writeString(displayorder);
dest.writeString(digest);
dest.writeString(special);
dest.writeString(attachment);
dest.writeString(recommend_add);
dest.writeString(replycredit);
dest.writeString(dbdateline);
dest.writeString(dblastpost);
dest.writeString(rushreply);
dest.writeTypedArray(reply, flags);
}
示例2: writeToParcel
import android.os.Parcel; //導入方法依賴的package包/類
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeInt(this.age);
dest.writeLong(this.id);
dest.writeInt(this.testShort);
dest.writeByte(this.testByte);
dest.writeByte(this.testBoolean ? (byte) 1 : (byte) 0);
dest.writeFloat(this.testFloat);
dest.writeDouble(this.testDouble);
dest.writeInt(this.testChar);
dest.writeValue(this.testLONG);
dest.writeValue(this.testDOUBLE);
dest.writeSerializable(this.testCharacter);
dest.writeValue(this.testBOOLEAN);
dest.writeValue(this.testSHORT);
dest.writeString(this.name);
dest.writeParcelable(this.data, flags);
dest.writeTypedList(this.datas);
dest.writeTypedArray(this.testArrayResultData, flags);
dest.writeIntArray(this.testArrayInt);
dest.writeArray(this.testArrayInteger);
}
示例3: writeToParcel
import android.os.Parcel; //導入方法依賴的package包/類
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeString(mName);
dest.writeInt(mShares.size());
Share[] shares = new Share[mShares.size()];
mShares.toArray(shares);
dest.writeTypedArray(shares,flags);
}
示例4: writeToParcel
import android.os.Parcel; //導入方法依賴的package包/類
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeTypedArray(this.families, flags);
dest.writeInt(this.fd.size());
for (Map.Entry<String, ParcelFileDescriptor> entry : this.fd.entrySet()) {
dest.writeString(entry.getKey());
dest.writeParcelable(entry.getValue(), flags);
}
}
示例5: writeToParcel
import android.os.Parcel; //導入方法依賴的package包/類
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeString(this.name);
dest.writeString(this.variant);
dest.writeStringArray(this.language);
dest.writeIntArray(this.ttc_index);
dest.writeString(this.size);
dest.writeStringArray(this.preview_text);
dest.writeString(this.url_prefix);
dest.writeTypedArray(this.style, flags);
}
示例6: writeToParcel
import android.os.Parcel; //導入方法依賴的package包/類
@Override
public void writeToParcel(@NonNull Parcel dest, int flags) {
dest.writeInt(this.survey_id);
dest.writeInt(this.limit_from);
dest.writeInt(this.limit_to);
dest.writeInt(this.step);
dest.writeInt(this.seen ? 1 : 0);
dest.writeInt(this.type);
dest.writeString(this.title);
dest.writeString(this.subtitle);
dest.writeString(this.thank_you_text);
try {
dest.writeTypedArray(this.choices, 0);
} catch (Exception ignored) { }
}
示例7: writeToParcel
import android.os.Parcel; //導入方法依賴的package包/類
@Override
public void writeToParcel(final Parcel dest, final int flags) {
dest.writeSerializable(standard);
dest.writeString(payeeName);
dest.writeString(payeeVerifiedBy);
if (outputs != null) {
dest.writeInt(outputs.length);
dest.writeTypedArray(outputs, 0);
} else {
dest.writeInt(0);
}
dest.writeString(memo);
dest.writeString(paymentUrl);
if (payeeData != null) {
dest.writeInt(payeeData.length);
dest.writeByteArray(payeeData);
} else {
dest.writeInt(0);
}
dest.writeString(paymentRequestUrl);
if (paymentRequestHash != null) {
dest.writeInt(paymentRequestHash.length);
dest.writeByteArray(paymentRequestHash);
} else {
dest.writeInt(0);
}
}
示例8: writeToParcel
import android.os.Parcel; //導入方法依賴的package包/類
@Override
public void writeToParcel(Parcel parcel, int i) {
parcel.writeString(path);
parcel.writeString(name);
parcel.writeString(String.valueOf(isMedia));
File_POJO[] children = new File_POJO[this.children.size()];
for (int k = 0; k < children.length; k++) {
children[k] = this.children.get(k);
}
parcel.writeTypedArray(children, 0);
parcel.writeString(String.valueOf(excluded));
}
示例9: writeToParcel
import android.os.Parcel; //導入方法依賴的package包/類
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeTypedArray(this.points, flags);
dest.writeInt(this.fillColor);
dest.writeParcelable(this.uiOptions, flags);
}
示例10: writeToParcel
import android.os.Parcel; //導入方法依賴的package包/類
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeTypedArray(this.points, flags);
dest.writeParcelable(this.uiOptions, flags);
}
示例11: writeToParcel
import android.os.Parcel; //導入方法依賴的package包/類
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeTypedArray(locationsBefore, flags);
dest.writeTypedArray(locationsAfter, flags);
}
示例12: writeToParcel
import android.os.Parcel; //導入方法依賴的package包/類
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeTypedArray(schemeDatas, 0);
}
示例13: writeToParcel
import android.os.Parcel; //導入方法依賴的package包/類
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeIntArray(this.weight);
dest.writeTypedArray(filterDefault(this.requests), flags);
}
示例14: writeToParcel
import android.os.Parcel; //導入方法依賴的package包/類
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeInt(this.variant);
dest.writeString(this.language);
dest.writeTypedArray(this.fonts, flags);
}
示例15: writeToParcel
import android.os.Parcel; //導入方法依賴的package包/類
@Override
public void writeToParcel(Parcel parcel, int i) {
parcel.writeTypedArray(forums, i);
}