本文整理汇总了Java中android.text.TextUtils.writeToParcel方法的典型用法代码示例。如果您正苦于以下问题:Java TextUtils.writeToParcel方法的具体用法?Java TextUtils.writeToParcel怎么用?Java TextUtils.writeToParcel使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类android.text.TextUtils
的用法示例。
在下文中一共展示了TextUtils.writeToParcel方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: writeToParcel
import android.text.TextUtils; //导入方法依赖的package包/类
/**
*/
@Override
public void writeToParcel(@NonNull Parcel dest, int flags) {
super.writeToParcel(dest, flags);
TextUtils.writeToParcel(text, dest, flags);
TextUtils.writeToParcel(hint, dest, flags);
dest.writeInt(inputType);
dest.writeInt(maxLength);
dest.writeInt(lines);
dest.writeInt(minLines);
dest.writeInt(maxLines);
}
示例2: writeToParcel
import android.text.TextUtils; //导入方法依赖的package包/类
/**
*/
@Override
public void writeToParcel(@NonNull Parcel dest, int flags) {
super.writeToParcel(dest, flags);
TextUtils.writeToParcel(hint, dest, flags);
TextUtils.writeToParcel(query, dest, flags);
}
示例3: writeToParcel
import android.text.TextUtils; //导入方法依赖的package包/类
/**
*/
@Override
public void writeToParcel(@NonNull Parcel dest, int flags) {
super.writeToParcel(dest, flags);
TextUtils.writeToParcel(label, dest, flags);
TextUtils.writeToParcel(note, dest, flags);
TextUtils.writeToParcel(error, dest, flags);
TextUtils.writeToParcel(constraint, dest, flags);
}
示例4: writeToParcel
import android.text.TextUtils; //导入方法依赖的package包/类
/**
*/
@Override
public void writeToParcel(@NonNull Parcel dest, int flags) {
super.writeToParcel(dest, flags);
dest.writeInt(selection);
TextUtils.writeToParcel(prompt, dest, flags);
}
示例5: setPermission
import android.text.TextUtils; //导入方法依赖的package包/类
public void setPermission(MyPermissionGroupInfo grp, MyPermissionInfo perm,
boolean first, CharSequence newPermPrefix) {
group = grp;
this.perm = perm;
ImageView permGrpIcon = (ImageView) findViewById(R.id.perm_icon);
TextView permNameView = (TextView) findViewById(R.id.perm_name);
PackageManager pm = getContext().getPackageManager();
Drawable icon = null;
if (first) {
icon = grp.loadGroupIcon(getContext(), pm);
}
CharSequence label = perm.label;
if (perm.newPerm && newPermPrefix != null) {
// If this is a new permission, format it appropriately.
SpannableStringBuilder builder = new SpannableStringBuilder();
Parcel parcel = Parcel.obtain();
TextUtils.writeToParcel(newPermPrefix, parcel, 0);
parcel.setDataPosition(0);
CharSequence newStr = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(parcel);
parcel.recycle();
builder.append(newStr);
builder.append(label);
label = builder;
}
permGrpIcon.setImageDrawable(icon);
permGrpIcon.setColorFilter(0xff757575);
permNameView.setText(label);
setOnClickListener(this);
}
示例6: onQueueTitleChanged
import android.text.TextUtils; //导入方法依赖的package包/类
public void onQueueTitleChanged(CharSequence title) throws RemoteException {
Parcel _data = Parcel.obtain();
try {
_data.writeInterfaceToken(Stub.DESCRIPTOR);
if (title != null) {
_data.writeInt(1);
TextUtils.writeToParcel(title, _data, 0);
} else {
_data.writeInt(0);
}
this.mRemote.transact(6, _data, null, 1);
} finally {
_data.recycle();
}
}
示例7: writeToParcel
import android.text.TextUtils; //导入方法依赖的package包/类
@Override
public void writeToParcel(final Parcel out, final int flags) {
super.writeToParcel(out, flags);
out.writeLong(timestamp);
TextUtils.writeToParcel(label, out, flags);
}
示例8: writeToParcel
import android.text.TextUtils; //导入方法依赖的package包/类
@Override
public final void writeToParcel(final Parcel parcel, final int flags) {
TextUtils.writeToParcel(title, parcel, flags);
parcel.writeInt(iconId);
parcel.writeParcelable(iconBitmap, flags);
parcel.writeInt(closeable ? 1 : 0);
parcel.writeInt(closeButtonIconId);
parcel.writeParcelable(closeButtonIconBitmap, flags);
parcel.writeParcelable(backgroundColor, flags);
parcel.writeInt(contentBackgroundColor);
parcel.writeParcelable(titleTextColor, flags);
parcel.writeInt(progressBarShown ? 1 : 0);
parcel.writeInt(progressBarColor);
parcel.writeBundle(parameters);
}
示例9: writeToParcel
import android.text.TextUtils; //导入方法依赖的package包/类
public void writeToParcel(Parcel dest, int flags) {
dest.writeIntArray(this.mOps);
dest.writeInt(this.mTransition);
dest.writeInt(this.mTransitionStyle);
dest.writeString(this.mName);
dest.writeInt(this.mIndex);
dest.writeInt(this.mBreadCrumbTitleRes);
TextUtils.writeToParcel(this.mBreadCrumbTitleText, dest, 0);
dest.writeInt(this.mBreadCrumbShortTitleRes);
TextUtils.writeToParcel(this.mBreadCrumbShortTitleText, dest, 0);
dest.writeStringList(this.mSharedElementSourceNames);
dest.writeStringList(this.mSharedElementTargetNames);
}
示例10: writeToParcel
import android.text.TextUtils; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel out, int flags) {
super.writeToParcel(out, flags);
TextUtils.writeToParcel(onText, out, flags);
TextUtils.writeToParcel(offText, out, flags);
}
示例11: writeToParcel
import android.text.TextUtils; //导入方法依赖的package包/类
public void writeToParcel(Parcel dest, int flags) {
dest.writeString(this.mAction);
TextUtils.writeToParcel(this.mName, dest, flags);
dest.writeInt(this.mIcon);
dest.writeBundle(this.mExtras);
}
示例12: writeToParcel
import android.text.TextUtils; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeInt(cropShape.ordinal());
dest.writeFloat(snapRadius);
dest.writeFloat(touchRadius);
dest.writeInt(guidelines.ordinal());
dest.writeInt(scaleType.ordinal());
dest.writeByte((byte) (showCropOverlay ? 1 : 0));
dest.writeByte((byte) (showProgressBar ? 1 : 0));
dest.writeByte((byte) (autoZoomEnabled ? 1 : 0));
dest.writeByte((byte) (multiTouchEnabled ? 1 : 0));
dest.writeInt(maxZoom);
dest.writeFloat(initialCropWindowPaddingRatio);
dest.writeByte((byte) (fixAspectRatio ? 1 : 0));
dest.writeInt(aspectRatioX);
dest.writeInt(aspectRatioY);
dest.writeFloat(borderLineThickness);
dest.writeInt(borderLineColor);
dest.writeFloat(borderCornerThickness);
dest.writeFloat(borderCornerOffset);
dest.writeFloat(borderCornerLength);
dest.writeInt(borderCornerColor);
dest.writeFloat(guidelinesThickness);
dest.writeInt(guidelinesColor);
dest.writeInt(backgroundColor);
dest.writeInt(minCropWindowWidth);
dest.writeInt(minCropWindowHeight);
dest.writeInt(minCropResultWidth);
dest.writeInt(minCropResultHeight);
dest.writeInt(maxCropResultWidth);
dest.writeInt(maxCropResultHeight);
TextUtils.writeToParcel(activityTitle, dest, flags);
dest.writeInt(activityMenuIconColor);
dest.writeParcelable(outputUri, flags);
dest.writeString(outputCompressFormat.name());
dest.writeInt(outputCompressQuality);
dest.writeInt(outputRequestWidth);
dest.writeInt(outputRequestHeight);
dest.writeInt(outputRequestSizeOptions.ordinal());
dest.writeInt(noOutputImage ? 1 : 0);
dest.writeParcelable(initialCropWindowRectangle, flags);
dest.writeInt(initialRotation);
dest.writeByte((byte) (allowRotation ? 1 : 0));
dest.writeByte((byte) (allowFlipping ? 1 : 0));
dest.writeByte((byte) (allowCounterRotation ? 1 : 0));
dest.writeInt(rotationDegrees);
dest.writeByte((byte) (flipHorizontally ? 1 : 0));
dest.writeByte((byte) (flipVertically ? 1 : 0));
TextUtils.writeToParcel(cropMenuCropButtonTitle, dest, flags);
dest.writeInt(cropMenuCropButtonIcon);
}
示例13: writeToParcel
import android.text.TextUtils; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel out, int flags) {
super.writeToParcel(out, flags);
TextUtils.writeToParcel(onText, out, flags);
TextUtils.writeToParcel(offText, out, flags);
}
示例14: writeToParcel
import android.text.TextUtils; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeInt(this.icon);
TextUtils.writeToParcel(this.text, dest, flags); // dest.writeValue(this.text);
}
示例15: writeToParcel
import android.text.TextUtils; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
super.writeToParcel(dest, flags);
TextUtils.writeToParcel(error, dest, flags);
dest.writeInt(isPasswordToggledVisible ? 1 : 0);
}