android.os.Bundle.putCharSequenceArray()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(6.7k)|赞(0)|评价(0)|浏览(153)

本文整理了Java中android.os.Bundle.putCharSequenceArray()方法的一些代码示例,展示了Bundle.putCharSequenceArray()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Bundle.putCharSequenceArray()方法的具体详情如下:
包路径:android.os.Bundle
类名称:Bundle
方法名:putCharSequenceArray

Bundle.putCharSequenceArray介绍

暂无

代码示例

代码示例来源:origin: bluelinelabs/Conductor

public BundleBuilder putCharSequenceArray(String key, CharSequence[] value) {
  bundle.putCharSequenceArray(key, value);
  return this;
}

代码示例来源:origin: konmik/nucleus

when(bundle.getFloatArray(anyString())).thenAnswer(get);
doAnswer(put).when(bundle).putCharSequenceArray(anyString(), any(CharSequence[].class));
when(bundle.getCharSequenceArray(anyString())).thenAnswer(get);

代码示例来源:origin: f2prateek/dart

/**
 * Inserts a CharSequence array value into the mapping of the underlying Bundle, replacing any
 * existing value for the given key. Either key or value may be null.
 *
 * @param key a String, or null
 * @param value a CharSequence array object, or null
 * @return this bundler instance to chain method calls
 */
public Bundler put(String key, CharSequence[] value) {
 delegate.putCharSequenceArray(key, value);
 return this;
}

代码示例来源:origin: ogaclejapan/SmartTabLayout

/**
 * Inserts a CharSequence array value into the mapping of this Bundle, replacing
 * any existing value for the given key.  Either key or value may be null.
 *
 * @param key   a String, or null
 * @param value a CharSequence array object, or null
 */
@TargetApi(8)
public Bundler putCharSequenceArray(String key, CharSequence[] value) {
 bundle.putCharSequenceArray(key, value);
 return this;
}

代码示例来源:origin: ogaclejapan/SmartTabLayout

/**
 * Inserts a CharSequence array value into the mapping of this Bundle, replacing
 * any existing value for the given key.  Either key or value may be null.
 *
 * @param key   a String, or null
 * @param value a CharSequence array object, or null
 */
@TargetApi(8)
public Bundler putCharSequenceArray(String key, CharSequence[] value) {
 bundle.putCharSequenceArray(key, value);
 return this;
}

代码示例来源:origin: meituan/WMRouter

/**
 * 附加到Intent的Extra
 */
public DefaultUriRequest putExtra(String name, CharSequence[] value) {
  extra().putCharSequenceArray(name, value);
  return this;
}

代码示例来源:origin: com.github.stephanenicolas.dart.v2/henson

/**
 * Inserts a CharSequence array value into the mapping of the underlying Bundle, replacing
 * any existing value for the given key.  Either key or value may be null.
 *
 * @param key a String, or null
 * @param value a CharSequence array object, or null
 * @return this bundler instance to chain method calls
 */
public Bundler put(String key, CharSequence[] value) {
 delegate.putCharSequenceArray(key, value);
 return this;
}

代码示例来源:origin: com.codeslap/groundy

/**
 * Inserts a CharSequence array value into the mapping of this Bundle, replacing
 * any existing value for the given key.  Either key or value may be null.
 *
 * @param key   a String, or null
 * @param value a CharSequence array object, or null
 */
public Bundler add(String key, CharSequence[] value) {
  mBundle.putCharSequenceArray(key, value);
  return this;
}

代码示例来源:origin: LuckyJayce/EventBus-Apt

@Override
  public void put(Bundle bundle, String paramName, Object arg) {
    bundle.putCharSequenceArray(paramName, (CharSequence[]) arg);
  }
});

代码示例来源:origin: tom91136/Akatsuki

public BundleBuilder add(String key, CharSequence[] value) {
  bundle.putCharSequenceArray(key, value);
  return this;
}

代码示例来源:origin: evernote/android-state

public void putCharSequenceArray(Bundle state, String key, CharSequence[] x) {
  state.putCharSequenceArray(key + mBaseKey, x);
}

代码示例来源:origin: 80945540/FreeBook

/**
 * Inserts a CharSequence array value into the mapping of this Bundle, replacing
 * any existing value for the given key.  Either key or value may be null.
 *
 * @param key   a String, or null
 * @param value a CharSequence array object, or null
 */
@TargetApi(8)
public Bundler putCharSequenceArray(String key, CharSequence[] value) {
 bundle.putCharSequenceArray(key, value);
 return this;
}

代码示例来源:origin: 80945540/LCRapidDevelop

/**
 * Inserts a CharSequence array value into the mapping of this Bundle, replacing
 * any existing value for the given key.  Either key or value may be null.
 *
 * @param key   a String, or null
 * @param value a CharSequence array object, or null
 */
@TargetApi(8)
public Bundler putCharSequenceArray(String key, CharSequence[] value) {
 bundle.putCharSequenceArray(key, value);
 return this;
}

代码示例来源:origin: xiaoxiaogogo/Qiaoba

public Builder withCharSequenceArray(String key, CharSequence[] val){
  if(mArgBundle == null){
    mArgBundle = new Bundle();
  }
  mArgBundle.putCharSequenceArray(key, val);
  return this;
}

代码示例来源:origin: xiaoxiaogogo/Qiaoba

public Builder withCharSequenceArray(String key, CharSequence[] val){
  if(mArgBundle == null){
    mArgBundle = new Bundle();
  }
  mArgBundle.putCharSequenceArray(key, val);
  return this;
}

代码示例来源:origin: kayoSun/Tack

public static void putToBundle(@NonNull Bundle bundle, String key, @Nullable CharSequence[] value) {
  bundle.putCharSequenceArray(key, value);
}
public static void putToBundle(@NonNull Bundle bundle, String key, @Nullable byte[] value) {

代码示例来源:origin: michael-rapp/AndroidMaterialDialog

@Override
public final void onSaveInstanceState(@NonNull final Bundle outState) {
  outState.putInt(ITEM_COLOR_EXTRA, getItemColor());
  if (items != null) {
    outState.putCharSequenceArray(ITEMS_EXTRA, items);
  } else if (singleChoiceItems != null) {
    outState.putCharSequenceArray(SINGLE_CHOICE_ITEMS_EXTRA, singleChoiceItems);
    outState.putBooleanArray(CHECKED_ITEMS_EXTRA, getCheckedItems());
  } else if (multiChoiceItems != null) {
    outState.putCharSequenceArray(MULTI_CHOICE_ITEMS_EXTRA, multiChoiceItems);
    outState.putBooleanArray(CHECKED_ITEMS_EXTRA, getCheckedItems());
  }
}

代码示例来源:origin: kingargyle/adt-leanback-support

static Bundle toBundle(RemoteInputCompatBase.RemoteInput remoteInput) {
  Bundle data = new Bundle();
  data.putString(KEY_RESULT_KEY, remoteInput.getResultKey());
  data.putCharSequence(KEY_LABEL, remoteInput.getLabel());
  data.putCharSequenceArray(KEY_CHOICES, remoteInput.getChoices());
  data.putBoolean(KEY_ALLOW_FREE_FORM_INPUT, remoteInput.getAllowFreeFormInput());
  data.putBundle(KEY_EXTRAS, remoteInput.getExtras());
  return data;
}

代码示例来源:origin: ashishbhandari/AndroidTabbedDialog

@Override
  protected Bundle prepareArguments() {
    Bundle args = new Bundle();
    args.putCharSequence(TabDialogFragment.ARG_MESSAGE, mMessage);
    args.putCharSequence(TabDialogFragment.ARG_TITLE, mTitle);
    args.putCharSequence(TabDialogFragment.ARG_SUB_TITLE, mSubTitle);
    args.putCharSequence(TabDialogFragment.ARG_POSITIVE_BUTTON, mPositiveButtonText);
    args.putCharSequence(TabDialogFragment.ARG_NEGATIVE_BUTTON, mNegativeButtonText);
    args.putCharSequence(TabDialogFragment.ARG_NEUTRAL_BUTTON, mNeutralButtonText);
    args.putCharSequenceArray(TabDialogFragment.ARG_TAB_BUTTON, mTabButtonText);
    return args;
  }
}

代码示例来源:origin: okleine/spitfirefox

@Override
public void onSaveInstanceState(Bundle outState){
  super.onSaveInstanceState(outState);
  //Store actual data from service adapter
  View serviceView = getActivity().findViewById(R.id.txt_service);
  if(serviceView != null) {
    ListAdapter serviceAdapter = ((AutoCompleteTextView) serviceView).getAdapter();
    if (serviceAdapter != null) {
      int count = serviceAdapter.getCount();
      String[] services = new String[count];
      for (int i = 0; i < count; i++) {
        services[i] = (String) serviceAdapter.getItem(i);
      }
      outState.putCharSequenceArray("services", services);
    }
  }
}

相关文章

Bundle类方法