当前位置: 首页>>代码示例>>Java>>正文


Java Parcel.writeString方法代码示例

本文整理汇总了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);
}
 
开发者ID:junchenChow,项目名称:exciting-app,代码行数:24,代码来源:AbsHListView.java

示例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);
}
 
开发者ID:eltos,项目名称:SimpleDialogFragments,代码行数:20,代码来源:Input.java

示例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);
}
 
开发者ID:AtlantPlatform,项目名称:atlant-android,代码行数:18,代码来源:Rent.java

示例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);
}
 
开发者ID:ThirtyDegreesRay,项目名称:OpenHub,代码行数:8,代码来源:Branch.java

示例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);
}
 
开发者ID:JunGeges,项目名称:AliZhiBoHao,代码行数:9,代码来源:ShareInfo.java

示例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);
}
 
开发者ID:TrustWallet,项目名称:trust-wallet-android,代码行数:9,代码来源:TransactionContract.java

示例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));
}
 
开发者ID:mobillium,项目名称:omnicrow-android,代码行数:8,代码来源:NotificationAction.java

示例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));
}
 
开发者ID:codehz,项目名称:container,代码行数:8,代码来源:AppSetting.java

示例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);
}
 
开发者ID:alphater,项目名称:garras,代码行数:8,代码来源:User.java

示例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);
  }
}
 
开发者ID:mapbox,项目名称:mapbox-events-android,代码行数:36,代码来源:NavigationStepMetadata.java

示例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);
}
 
开发者ID:eltos,项目名称:SimpleDialogFragments,代码行数:12,代码来源:Spinner.java

示例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);
}
 
开发者ID:suhaas-livcd,项目名称:Android_Labs,代码行数:11,代码来源:TrackMetaData.java

示例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);
}
 
开发者ID:riteshakya037,项目名称:Flashcards-Demo,代码行数:14,代码来源:CardModel.java

示例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);
}
 
开发者ID:kikermo,项目名称:Things-Audio-Renderer,代码行数:11,代码来源:Track.java

示例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);
}
 
开发者ID:PhoenixDevTeam,项目名称:Phoenix-for-VK,代码行数:7,代码来源:VkApiPhotoMessageServer.java


注:本文中的android.os.Parcel.writeString方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。