本文整理汇总了Java中android.os.Parcel.writeString方法的典型用法代码示例。如果您正苦于以下问题:Java Parcel.writeString方法的具体用法?Java Parcel.writeString怎么用?Java Parcel.writeString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类android.os.Parcel
的用法示例。
在下文中一共展示了Parcel.writeString方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel out, int flags) {
if (LOG_ENABLED) {
Log.i(TAG, "writeToParcel");
}
super.writeToParcel(out, flags);
out.writeLong(selectedId);
out.writeLong(firstId);
out.writeInt(viewLeft);
out.writeInt(position);
out.writeInt(width);
out.writeString(filter);
out.writeByte((byte) (inActionMode ? 1 : 0));
out.writeInt(checkedItemCount);
if (LOG_ENABLED) {
////log.d(TAG, "writing checkState: " + checkState);
////log.d(TAG, "writing checkIdState: " + checkIdState);
}
writeSparseBooleanArray(checkState, out);
writeSparseLongArray(checkIdState, out);
}
示例2: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
super.writeToParcel(dest, flags);
dest.writeString(hint);
dest.writeInt(hintResourceId);
dest.writeString(text);
dest.writeInt(textResourceId);
dest.writeInt(inputType);
dest.writeInt(maxLength);
dest.writeInt(minLength);
dest.writeInt(suggestionArrayRes);
dest.writeIntArray(suggestionStringResArray);
dest.writeStringArray(suggestions);
dest.writeByte((byte) (passwordToggleVisible ? 1 : 0));
dest.writeByte((byte) (forceSuggestion ? 1 : 0));
dest.writeString(pattern);
dest.writeString(patternError);
dest.writeInt(patternErrorId);
}
示例3: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeString(this.name);
dest.writeString(this.country);
dest.writeString(this.city);
dest.writeStringArray(this.imageUrl);
dest.writeInt(this.numberRooms);
dest.writeInt(this.numberBeds);
dest.writeInt(this.numberBath);
dest.writeInt(this.numberMaxGuests);
dest.writeInt(this.priceDollars);
dest.writeString(this.howDay);
dest.writeString(this.description);
dest.writeByte(this.growth ? (byte) 1 : (byte) 0);
dest.writeInt(this.numberLikes);
dest.writeParcelable(this.amenities, flags);
}
示例4: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeString(this.name);
dest.writeString(this.zipballUrl);
dest.writeString(this.tarballUrl);
dest.writeByte(this.isBranch ? (byte) 1 : (byte) 0);
}
示例5: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeString(title);
dest.writeString(desc);
dest.writeString(link);
dest.writeString(imgUrl);
dest.writeString(liveId);
}
示例6: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel parcel, int i) {
parcel.writeString(address);
parcel.writeString(name);
parcel.writeString(totalSupply);
parcel.writeLong(decimals);
parcel.writeString(symbol);
}
示例7: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeByte((byte) (isEnabled ? 1 : 0));
dest.writeString(message);
dest.writeString(ringtone);
dest.writeByte((byte) (isVibrate ? 1 : 0));
}
示例8: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeString(packageName);
dest.writeString(apkPath);
dest.writeString(libPath);
dest.writeByte((byte) (dependSystem ? 1 : 0));
}
示例9: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeString(title);
dest.writeByte((byte) (primary ? 1 : 0));
dest.writeString(slug);
dest.writeString(link);
}
示例10: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeString(upcomingInstruction);
dest.writeString(upcomingType);
dest.writeString(upcomingModifier);
dest.writeString(upcomingName);
dest.writeString(previousInstruction);
dest.writeString(previousType);
dest.writeString(previousModifier);
dest.writeString(previousName);
if (distance == null) {
dest.writeByte((byte) (0x00));
} else {
dest.writeByte((byte) (0x01));
dest.writeInt(distance);
}
if (duration == null) {
dest.writeByte((byte) (0x00));
} else {
dest.writeByte((byte) (0x01));
dest.writeInt(duration);
}
if (distanceRemaining == null) {
dest.writeByte((byte) (0x00));
} else {
dest.writeByte((byte) (0x01));
dest.writeInt(distanceRemaining);
}
if (durationRemaining == null) {
dest.writeByte((byte) (0x00));
} else {
dest.writeByte((byte) (0x01));
dest.writeInt(durationRemaining);
}
}
示例11: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeInt(itemArrayRes);
dest.writeIntArray(itemStringResArray);
dest.writeStringArray(items);
dest.writeString(text);
dest.writeInt(textResourceId);
dest.writeString(placeholder);
dest.writeInt(placeholderResourceId);
dest.writeInt(position);
}
示例12: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeString(TrackPath);
dest.writeString(TrackTitle);
dest.writeString(TrackArtist);
dest.writeString(TrackAlbum);
dest.writeString(TrackGenre);
dest.writeString(TrackLength);
dest.writeString(TrackYear);
}
示例13: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
/**
* Parcelable object written on state changes.
*
* @param parcel Parcelable object in which state changes are written.
* @param i Flags used to storing Parcelable object
*/
@Override
public void writeToParcel(Parcel parcel, int i) {
parcel.writeString(englishWord);
parcel.writeString(greekWord);
parcel.writeString(pronunciationGreek);
parcel.writeString(voiceMale);
}
示例14: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
super.writeToParcel(dest, flags);
dest.writeString(title);
dest.writeString(album);
dest.writeString(artist);
dest.writeInt(length);
dest.writeString(url);
dest.writeString(art);
}
示例15: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeString(upload_url);
dest.writeInt(album_id);
dest.writeInt(user_id);
}