本文整理了Java中android.os.Parcel.readArrayList()
方法的一些代码示例,展示了Parcel.readArrayList()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Parcel.readArrayList()
方法的具体详情如下:
包路径:android.os.Parcel
类名称:Parcel
方法名:readArrayList
[英]Read and return a new ArrayList object from the parcel at the current dataPosition(). Returns null if the previously written list object was null. The given class loader will be used to load any enclosed Parcelables.
[中]从当前dataPosition()处的地块读取并返回新的ArrayList对象。如果之前写入的列表对象为null,则返回null。给定的类装入器将用于装入任何封闭的包裹。
代码示例来源:origin: mancj/MaterialSearchBar
public SavedState(Parcel source) {
super(source);
isSearchBarVisible = source.readInt();
suggestionsVisible = source.readInt();
speechMode = source.readInt();
navIconResId = source.readInt();
searchIconRes = source.readInt();
hint = source.readString();
suggestions = source.readArrayList(null);
maxSuggestions = source.readInt();
}
代码示例来源: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
this.text = parcel.readString();
this.image = parcel.readString();
this.choices = parcel.readArrayList(null);
代码示例来源:origin: parse-community/Parse-SDK-Android
/**
* Creates a new point instance from a {@link Parcel} using the given {@link ParseParcelDecoder}.
* The decoder is currently unused, but it might be in the future, plus this is the pattern we
* are using in parcelable classes.
*
* @param source the parcel
* @param decoder the decoder
*/
ParsePolygon(Parcel source, ParseParcelDecoder decoder) {
setCoordinates(source.readArrayList(null));
}
代码示例来源:origin: stackoverflow.com
price = in.readDouble();
public_url = in.readString();
images = in.readArrayList(ImageGroup.class.getClassLoader());
related = in.readArrayList(ProductInfo.class.getClassLoader());
saleprice = in.readDouble();
sizes = in.readString();
代码示例来源:origin: MKergall/osmbonuspack
public KmlTrack(Parcel in){
super(in);
mWhen = in.readArrayList(Date.class.getClassLoader());
}
}
代码示例来源:origin: MKergall/osmbonuspack
public KmlFolder(Parcel in){
super(in);
mItems = in.readArrayList(KmlFeature.class.getClassLoader());
}
}
代码示例来源:origin: MKergall/osmbonuspack
public KmlMultiGeometry(Parcel in){
super(in);
mItems = in.readArrayList(KmlGeometry.class.getClassLoader());
}
}
代码示例来源:origin: MKergall/osmbonuspack
public KmlGeometry(Parcel in){
mId = in.readString();
mCoordinates = in.readArrayList(GeoPoint.class.getClassLoader());
}
}
代码示例来源:origin: amahi/android
@SuppressWarnings("unchecked")
private ServerShare(Parcel parcel) {
this.name = parcel.readString();
this.tags = parcel.readArrayList(String.class.getClassLoader());
}
代码示例来源:origin: proninyaroslav/libretorrent
public MagnetInfo(Parcel s)
{
uri = s.readString();
sha1hash = s.readString();
name = s.readString();
filePriorities = s.readArrayList(Priority.class.getClassLoader());
}
代码示例来源:origin: proninyaroslav/libretorrent
public CreateTorrentParams(Parcel source)
{
path = source.readString();
pathToSave = source.readString();
trackerUrls = source.readArrayList(String.class.getClassLoader());
webSeedUrls = source.readArrayList(String.class.getClassLoader());
comments = source.readString();
startSeeding = source.readByte() != 0;
isPrivate = source.readByte() != 0;
optimizeAlignment = source.readByte() != 0;
skipFilesList = source.readArrayList(String.class.getClassLoader());
pieceSize = source.readInt();
}
代码示例来源:origin: MKergall/osmbonuspack
public KmlPolygon(Parcel in){
super(in);
int holes = in.readInt();
if (holes != 0){
mHoles = new ArrayList<ArrayList<GeoPoint>>(holes);
for (int i=0; i<holes; i++){
ArrayList<GeoPoint> l = in.readArrayList(GeoPoint.class.getClassLoader());
mHoles.add(l);
}
}
}
代码示例来源:origin: proninyaroslav/libretorrent
public AddTorrentParams(Parcel s)
{
source = s.readString();
fromMagnet = s.readByte() != 0;
sha1hash = s.readString();
name = s.readString();
filePriorities = s.readArrayList(Priority.class.getClassLoader());
pathToDownload = s.readString();
sequentialDownload = s.readByte() != 0;
addPaused = s.readByte() != 0;
}
代码示例来源:origin: MKergall/osmbonuspack
private Road(Parcel in){
mStatus = in.readInt();
mLength = in.readDouble();
mDuration = in.readDouble();
mNodes = in.readArrayList(RoadNode.class.getClassLoader());
mLegs = in.readArrayList(RoadLeg.class.getClassLoader());
mRouteHigh = in.readArrayList(GeoPoint.class.getClassLoader());
mBoundingBox = in.readParcelable(BoundingBox.class.getClassLoader());
}
}
代码示例来源:origin: MKergall/osmbonuspack
public KmlGroundOverlay(Parcel in){
super(in);
mIconHref = in.readString();
mIcon = in.readParcelable(Bitmap.class.getClassLoader());
mColor = in.readInt();
mRotation = in.readFloat();
mCoordinates = in.readArrayList(GeoPoint.class.getClassLoader());
}
代码示例来源:origin: andforce/iBeebo
@Override
public FileTraversal createFromParcel(Parcel source) {
FileTraversal ft = new FileTraversal();
ft.filename = source.readString();
ft.filecontent = source.readArrayList(FileTraversal.class.getClassLoader());
return ft;
}
代码示例来源:origin: stackoverflow.com
private List<PersonParcelable> personParcelables;
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeString(name);
dest.writeList(personParcelables);
}
private ProjectParcelable(Parcel in) {
this.name = in.readString();
this.personParcelables = in.readArrayList(PersonParcelable.class.getClassLoader());
}
代码示例来源:origin: stackoverflow.com
Parcel parcel = Parcel.obtain();
parcel.unmarshall(data, 0, data.length);
parcel.setDataPosition(0); // Set the position in the parcel back to the beginning
// so that we can read the stuff out of it
ArrayList<Object> rawList = parcel.readArrayList(Object.class.getClassLoader());
代码示例来源:origin: purrprogramming/voice-pitch-analyzer
protected PitchRange(Parcel src) {
this.setAvg(src.readDouble());
this.setMin(src.readDouble());
this.setMax(src.readDouble());
this.setPitches(src.readArrayList(Double.class.getClassLoader()));
}
内容来源于网络,如有侵权,请联系作者删除!