android.os.Parcel.createStringArrayList()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(6.5k)|赞(0)|评价(0)|浏览(222)

本文整理了Java中android.os.Parcel.createStringArrayList()方法的一些代码示例,展示了Parcel.createStringArrayList()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Parcel.createStringArrayList()方法的具体详情如下:
包路径:android.os.Parcel
类名称:Parcel
方法名:createStringArrayList

Parcel.createStringArrayList介绍

[英]Read and return a new ArrayList containing String objects from the parcel that was written with #writeStringList at the current dataPosition(). Returns null if the previously written list object was null.
[中]读取并返回一个新的ArrayList,其中包含在当前dataPosition()处使用#writeStringList写入的包裹中的字符串对象。如果之前写入的列表对象为null,则返回null。

代码示例

代码示例来源:origin: seven332/EhViewer

protected LargePreviewSet(Parcel in) {
  this.mPositionList = in.readParcelable(IntList.class.getClassLoader());
  this.mImageUrlList = in.createStringArrayList();
  this.mPageUrlList = in.createStringArrayList();
}

代码示例来源:origin: seven332/EhViewer

protected GalleryTagGroup(Parcel in) {
  this.groupName = in.readString();
  this.mTagList = in.createStringArrayList();
}

代码示例来源:origin: Justson/AgentWeb

protected Action(Parcel in) {
  mPermissions = in.createStringArrayList();
  mAction = in.readInt();
  mFromIntention = in.readInt();
}

代码示例来源:origin: seven332/EhViewer

protected NormalPreviewSet(Parcel in) {
  this.mPositionList = in.readParcelable(IntList.class.getClassLoader());
  this.mImageKeyList = in.createStringArrayList();
  this.mImageUrlList = in.createStringArrayList();
  this.mOffsetXList = in.readParcelable(IntList.class.getClassLoader());
  this.mOffsetYList = in.readParcelable(IntList.class.getClassLoader());
  this.mClipWidthList = in.readParcelable(IntList.class.getClassLoader());
  this.mClipHeightList = in.readParcelable(IntList.class.getClassLoader());
  this.mPageUrlList = in.createStringArrayList();
}

代码示例来源:origin: k9mail/k-9

public LocalSearch(Parcel in) {
    id = in.readString();
    mName = in.readString();
    mPredefined = (in.readByte() == 1);
    mManualSearch = (in.readByte() == 1);
    mAccountUuids.addAll(in.createStringArrayList());
    mConditions = in.readParcelable(LocalSearch.class.getClassLoader());
    mLeafSet = (mConditions == null) ? null : mConditions.getLeafSet();
  }
}

代码示例来源:origin: k9mail/k-9

private OpenPgpSignatureResult(Parcel source, int version) {
  this.result = source.readInt();
  // we dropped support for signatureOnly, but need to skip the value for compatibility
  source.readByte();
  this.primaryUserId = source.readString();
  this.keyId = source.readLong();
  if (version > 1) {
    this.userIds = source.createStringArrayList();
  } else {
    this.userIds = null;
  }
  if (version > 2) {
    this.senderStatusResult = readEnumWithNullAndFallback(
        source, SenderStatusResult.VALUES, SenderStatusResult.UNKNOWN);
    this.confirmedUserIds = source.createStringArrayList();
  } else {
    this.senderStatusResult = SenderStatusResult.UNKNOWN;
    this.confirmedUserIds = null;
  }
}

代码示例来源:origin: facebook/facebook-android-sdk

GameRequestContent(final Parcel in) {
  this.message = in.readString();
  this.recipients = in.createStringArrayList();
  this.title = in.readString();
  this.data = in.readString();
  this.actionType = (ActionType) in.readSerializable();
  this.objectId = in.readString();
  this.filters = (Filters) in.readSerializable();
  this.suggestions = in.createStringArrayList();
  in.readStringList(this.suggestions);
}

代码示例来源:origin: hidroh/materialistic

@SuppressWarnings("unchecked")
@Synthetic
SavedState(Parcel source) {
  ArrayList<Item> savedList = source.readArrayList(Item.class.getClassLoader());
  addAll(0, savedList);
  expanded.addAll(source.createStringArrayList());
}

代码示例来源:origin: stackoverflow.com

age = source.readInt();
name = source.readString();
address = source.createStringArrayList();

代码示例来源:origin: android-hacker/VirtualXposed

permissionGroups.add(new PermissionGroupComponent(in));
this.requestedPermissions = in.createStringArrayList();
this.protectedBroadcasts = in.createStringArrayList();
this.applicationInfo = in.readParcelable(ApplicationInfo.class.getClassLoader());
this.mAppMetaData = in.readBundle(Bundle.class.getClassLoader());
this.mVersionName = in.readString();
this.mSharedUserId = in.readString();
this.usesLibraries = in.createStringArrayList();
this.mVersionCode = in.readInt();
this.mSharedUserLabel = in.readInt();

代码示例来源:origin: robolectric/robolectric

@Test
public void testCreateStringArrayList() throws Exception {
 parcel.writeStringList(Arrays.asList("str1", "str2"));
 parcel.setDataPosition(0);
 List<String> actual = parcel.createStringArrayList();
 assertEquals(2, actual.size());
 assertEquals("str1", actual.get(0));
 assertEquals("str2", actual.get(1));
}

代码示例来源:origin: stackoverflow.com

private Custom(Parcel in){
  alarmTitle = in.readString();
  shortVakatName = in.createStringArrayList();
  vakatActive = in.createStringArrayList();
  alarmType = in.readString();
  alarmTime = in.readString();
  alarmDate = in.readString();
}

代码示例来源:origin: chenyangcun/MaterialDesignExample

protected Story(Parcel in) {
  type = in.readInt();
  id = in.readLong();
  gaPrefix = in.readInt();
  images = in.createStringArrayList();
  title = in.readString();
}

代码示例来源:origin: layerhq/Atlas-Android

private SavedState(Parcel in) {
    super(in);
    mSelectedParticipantIds = in.createStringArrayList();
  }
}

代码示例来源:origin: kollerlukas/Camera-Roll-Android-App

@SuppressWarnings("unused")
public VirtualAlbum(Parcel parcel) {
  super(parcel);
  directories = parcel.createStringArrayList();
}

代码示例来源:origin: laucherish/PureZhihuD

protected NewsDetail(Parcel in) {
  this.body = in.readString();
  this.image_source = in.readString();
  this.title = in.readString();
  this.image = in.readString();
  this.share_url = in.readString();
  this.ga_prefix = in.readString();
  this.type = in.readInt();
  this.id = in.readInt();
  this.js = in.createStringArrayList();
  this.css = in.createStringArrayList();
}

代码示例来源:origin: laucherish/PureZhihuD

protected News(Parcel in) {
  this.type = in.readInt();
  this.id = in.readInt();
  this.ga_prefix = in.readString();
  this.title = in.readString();
  this.images = in.createStringArrayList();
  this.isRead = in.readByte() != 0;
}

代码示例来源:origin: ZhangQinhao/MONKOVEL

protected BookContentBean(Parcel in) {
  durChapterUrl = in.readString();
  durChapterIndex = in.readInt();
  durCapterContent = in.readString();
  tag = in.readString();
  lineContent = in.createStringArrayList();
  isRight = in.readByte()!=0;
}

代码示例来源:origin: AndroidHensen/YaNi

protected Comment(Parcel in) {
  this.content = in.readString();
  this.username = in.readString();
  this.img_urls = in.createStringArrayList();
  this.S_OID = in.readString();
  this.reply = in.readString();
  this.setCreatedAt(in.readString());
}

代码示例来源:origin: LightSun/data-mediator

protected ResultData(Parcel in) {
  this.intergers = new ArrayList<Integer>();
  in.readList(this.intergers, Integer.class.getClassLoader());
  this.characters = new ArrayList<Character>();
  in.readList(this.characters, Character.class.getClassLoader());
  this.intents = in.createTypedArrayList(Intent.CREATOR);
  this.testStrs = in.createStringArray();
  this.strs = in.createStringArrayList();
}

相关文章

Parcel类方法