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


Java TextUtils.writeToParcel方法代码示例

本文整理汇总了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);
}
 
开发者ID:universum-studios,项目名称:android_ui,代码行数:14,代码来源:EditLayout.java

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

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

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

示例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);
}
 
开发者ID:uhuru-mobile,项目名称:mobile-store,代码行数:33,代码来源:AppSecurityPermissions.java

示例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();
    }
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:16,代码来源:IMediaControllerCallback.java

示例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);
}
 
开发者ID:PacktPublishing,项目名称:Hands-On-Android-UI-Development,代码行数:8,代码来源:DatePickerLayout.java

示例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);
}
 
开发者ID:michael-rapp,项目名称:ChromeLikeTabSwitcher,代码行数:16,代码来源:Tab.java

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

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

示例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);
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:7,代码来源:PlaybackStateCompat.java

示例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);
}
 
开发者ID:prashantsaini1,项目名称:android-titanium-imagecropper,代码行数:52,代码来源:CropImageOptions.java

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

示例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);
}
 
开发者ID:sega4revenge,项目名称:Sega,代码行数:6,代码来源:SearchItem.java

示例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);
}
 
开发者ID:commonsguy,项目名称:cwac-crossport,代码行数:7,代码来源:TextInputLayout.java


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