當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。