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

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

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

Bundle.getCharSequenceArrayList介绍

暂无

代码示例

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

when(bundle.getCharSequenceArrayList(anyString())).thenAnswer(get);

代码示例来源:origin: com.workday/postman

@Override
  public ArrayList<CharSequence> readFromBundle(Bundle bundle, String key) {
    return bundle.getCharSequenceArrayList(key);
  }
};

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

public ArrayList<CharSequence> getCharSequenceArrayList(String key){
  if (mBundle != null) {
    return mBundle.getCharSequenceArrayList(key);
  }
  return null;
}

代码示例来源:origin: Workday/postman

@Override
  public ArrayList<CharSequence> readFromBundle(Bundle bundle, String key) {
    return bundle.getCharSequenceArrayList(key);
  }
};

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

public ArrayList<CharSequence> getCharSequenceArrayList(Bundle state, String key) {
  return state.getCharSequenceArrayList(key + mBaseKey);
}

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

@Nullable
  @Override
  public List<CharSequence> get(@NonNull String key, @NonNull Bundle bundle) {
    return bundle.getCharSequenceArrayList(key);
  }
}

代码示例来源:origin: box/box-android-sdk

/**
 *
 * @return a list of authentication info objects to display in the fragment.
 */
public ArrayList<BoxAuthentication.BoxAuthenticationInfo> getAuthenticationInfoList(){
  if (getArguments() != null && getArguments().getCharSequenceArrayList(EXTRA_BOX_AUTHENTICATION_INFOS) != null){
    ArrayList<CharSequence> jsonSerialized = getArguments().getCharSequenceArrayList(EXTRA_BOX_AUTHENTICATION_INFOS);
    ArrayList<BoxAuthentication.BoxAuthenticationInfo> list = new ArrayList<BoxAuthentication.BoxAuthenticationInfo>(jsonSerialized.size());
    for (CharSequence sequence : jsonSerialized){
      BoxAuthentication.BoxAuthenticationInfo info = new BoxAuthentication.BoxAuthenticationInfo();
      info.createFromJson(sequence.toString());
      list.add(info);
    }
    return list;
  }
  Map<String, BoxAuthentication.BoxAuthenticationInfo> map = BoxAuthentication.getInstance().getStoredAuthInfo(getActivity());
  if (map != null){
    ArrayList<BoxAuthentication.BoxAuthenticationInfo> list = new ArrayList<BoxAuthentication.BoxAuthenticationInfo>(map.size());
    for (String key : map.keySet()){
      list.add(map.get(key));
    }
    return list;
  }
  return null;
}

代码示例来源:origin: BoD/jraf-android-util

@Override
public void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  mTag = getArguments().getInt("tag");
  mTitle = getArguments().getCharSequence("title");
  mTitleId = getArguments().getInt("titleId");
  mMessage = getArguments().getCharSequence("message");
  mMessageId = getArguments().getInt("messageId");
  mItems = getArguments().getCharSequenceArrayList("items");
  mItemsId = getArguments().getInt("itemsId");
  mViewId = getArguments().getInt("view");
  mPositiveButton = getArguments().getCharSequence("positiveButton");
  mPositiveButtonId = getArguments().getInt("positiveButtonId");
  mNegativeButton = getArguments().getCharSequence("negativeButton");
  mNegativeButtonId = getArguments().getInt("negativeButtonId");
  mCancelIsNegative = getArguments().getBoolean("cancelIsNegative");
  mPayload = getArguments().get("payload");
  mThemeId = getArguments().getInt("themeId");
}

代码示例来源:origin: BoD/jraf-android-util

@Override
public void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  mTag = getArguments().getInt("tag");
  mTitle = getArguments().getCharSequence("title");
  mTitleId = getArguments().getInt("titleId");
  mMessage = getArguments().getCharSequence("message");
  mMessageId = getArguments().getInt("messageId");
  mItems = getArguments().getCharSequenceArrayList("items");
  mItemsId = getArguments().getInt("itemsId");
  mViewId = getArguments().getInt("view");
  mPositiveButton = getArguments().getCharSequence("positiveButton");
  mPositiveButtonId = getArguments().getInt("positiveButtonId");
  mNegativeButton = getArguments().getCharSequence("negativeButton");
  mNegativeButtonId = getArguments().getInt("negativeButtonId");
  mCancelIsNegative = getArguments().getBoolean("cancelIsNegative");
  mPayload = getArguments().get("payload");
  mThemeId = getArguments().getInt("themeId");
}

代码示例来源:origin: AndroidHardening/PdfViewer

mPage = savedInstanceState.getInt(STATE_PAGE);
mZoomLevel = savedInstanceState.getInt(STATE_ZOOM_LEVEL);
mDocumentProperties = savedInstanceState.getCharSequenceArrayList(STATE_PROPERTIES);

相关文章

Bundle类方法