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


C# Bundle.PutStringArrayList方法代码示例

本文整理汇总了C#中Bundle.PutStringArrayList方法的典型用法代码示例。如果您正苦于以下问题:C# Bundle.PutStringArrayList方法的具体用法?C# Bundle.PutStringArrayList怎么用?C# Bundle.PutStringArrayList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Bundle的用法示例。


在下文中一共展示了Bundle.PutStringArrayList方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: CreateTagDialogFragment

        public CreateTagDialogFragment (Guid workspaceId, IList<TimeEntryData> timeEntryList)
        {
            var ids = timeEntryList.Select ( t => t.Id.ToString ()).ToList ();

            var args = new Bundle ();
            args.PutString (WorkspaceIdArgument, workspaceId.ToString ());
            args.PutStringArrayList (TimeEntriesIdsArgument, ids);
            Arguments = args;
        }
开发者ID:ZhangLeiCharles,项目名称:mobile,代码行数:9,代码来源:CreateTagDialogFragment.cs

示例2: EditGroupedTimeEntryFragment

        public EditGroupedTimeEntryFragment (IList<TimeEntryData> timeEntryList)
        {
            var ids = timeEntryList.Select ( t => t.Id.ToString ()).ToList ();

            var args = new Bundle ();
            args.PutStringArrayList (TimeEntriesIdsArgument, ids);
            Arguments = args;

            viewModel = new EditTimeEntryViewModel (timeEntryList);
        }
开发者ID:peeedge,项目名称:mobile,代码行数:10,代码来源:EditGroupedTimeEntryFragment.cs

示例3: NewInstance

        public static EditGroupedTimeEntryFragment NewInstance (IList<string> timeEntryListIds)
        {
            var fragment = new EditGroupedTimeEntryFragment ();

            var args = new Bundle ();
            args.PutStringArrayList (TimeEntriesIdsArgument, timeEntryListIds);
            fragment.Arguments = args;

            return fragment;
        }
开发者ID:ZhangLeiCharles,项目名称:mobile,代码行数:10,代码来源:EditGroupedTimeEntryFragment.cs

示例4: NewInstance

        public static ProjectListFragment NewInstance (IList<string> timeEntryIds)
        {
            var fragment = new ProjectListFragment ();

            var args = new Bundle ();
            args.PutStringArrayList (TimeEntryIdsArg, timeEntryIds);
            fragment.Arguments = args;

            return fragment;
        }
开发者ID:alfonsogarciacaro,项目名称:mobile,代码行数:10,代码来源:ProjectListFragment.cs

示例5: selectCity

        private void selectCity(List<string> citylist)
        {
            Intent deviceList = new Intent(this, typeof(selectcity));

            Bundle bundle = new Bundle();  //  Bundle的底层是一个HashMap<String, Object
            bundle.PutStringArrayList("citylist", citylist);
            deviceList.PutExtra("bundle", bundle);

            StartActivity(deviceList);
        }
开发者ID:Chunshan-Theta,项目名称:Xamarin_WeatherAPP_iOS_Android-,代码行数:10,代码来源:MainActivity.cs

示例6: ChooseTimeEntryTagsDialogFragment

        public ChooseTimeEntryTagsDialogFragment (Guid workspaceId, IList<TimeEntryData> timeEntryList)
        {
            var ids = timeEntryList.Select ( t => t.Id.ToString ()).ToList ();

            var args = new Bundle ();
            args.PutString (WorkspaceIdArgument, workspaceId.ToString ());
            args.PutStringArrayList (TimeEntriesIdsArgument, ids);
            Arguments = args;

            viewModel = new TagListViewModel (workspaceId, timeEntryList);
        }
开发者ID:ZhangLeiCharles,项目名称:mobile,代码行数:11,代码来源:ChooseTimeEntryTagsDialogFragment.cs

示例7: NewInstance

        public static ChooseTimeEntryTagsDialogFragment NewInstance (Guid workspaceId, List<Guid> tagIds)
        {
            var fragment = new ChooseTimeEntryTagsDialogFragment ();

            var args = new Bundle ();
            args.PutString (WorkspaceIdArgument, workspaceId.ToString ());
            var tagIdsStrings = tagIds.Select (t => t.ToString ()).ToList ();
            args.PutStringArrayList (SelectedTagNamesArgument, tagIdsStrings);
            fragment.Arguments = args;

            return fragment;
        }
开发者ID:eatskolnikov,项目名称:mobile,代码行数:12,代码来源:ChooseTimeEntryTagsDialogFragment.cs

示例8: NewInstance

        public static AddMovieFragmentTest NewInstance(string title, List<string> trakkedList)
        {
            var frag = new AddMovieFragmentTest();
            var args = new Bundle();
            args.PutString("title", title);

            args.PutStringArrayList("trakked", trakkedList);

            frag.Arguments = args;

            return frag;
        }
开发者ID:patrickpetropoulos,项目名称:TrakkerApp,代码行数:12,代码来源:AddMovieFragmentTest.cs

示例9: DeleteTimeEntriesPromptDialogFragment

        public DeleteTimeEntriesPromptDialogFragment (IEnumerable<TimeEntryModel> models)
        {
            var ids = new List<string> ();
            foreach (var model in models) {
                ids.Add (model.Id.ToString ());
            }

            var args = new Bundle ();
            args.PutStringArrayList (TimeEntryIdsArgument, ids);

            Arguments = args;
        }
开发者ID:karabatov,项目名称:mobile,代码行数:12,代码来源:DeleteTimeEntriesPromptDialogFragment.cs

示例10: OnSaveInstanceState

        public override void OnSaveInstanceState(Bundle outState)
        {
            base.OnSaveInstanceState(outState);

            MovieList myList = new MovieList();
            myList.movieList = Movies;

            string myJsonString = JsonConvert.SerializeObject(myList);

            outState.PutString(Bundle_MOVIELIST, myJsonString);
            outState.PutStringArrayList(Bundle_TRAKKEDLIST, TrakkedMoviesTMDBIDs);
            outState.PutInt(Bundle_PAGENUMBER, _pageNumber);
        }
开发者ID:patrickpetropoulos,项目名称:TrakkerApp,代码行数:13,代码来源:AddMovieFragmentTest.cs

示例11: DeleteTimeEntriesPromptDialogFragment

        public DeleteTimeEntriesPromptDialogFragment (IEnumerable<TimeEntryModel> models)
        {
            var ids = new List<string> ();
            foreach (var model in models) {
                if (!model.IsShared || model.DeletedAt != null)
                    continue;
                // Need to ensure the model IsPersisted, as we need to be able to access this model even
                // if the system suspends our process
                model.IsPersisted = true;
                ids.Add (model.Id.Value.ToString ());
            }

            var args = new Bundle ();
            args.PutStringArrayList (TimeEntryIdsArgument, ids);

            Arguments = args;
        }
开发者ID:nagyist,项目名称:toggl-mobile,代码行数:17,代码来源:DeleteTimeEntriesPromptDialogFragment.cs

示例12: QueryInventoryAsync

		/// <summary>
		/// Queries the inventory asynchronously.
		/// </summary>
		/// <returns>List of strings</returns>
		/// <param name="skuList">Sku list.</param>
		/// <param name="itemType">Item type.</param>
		public Task<IList<string>> QueryInventoryAsync (List<string> skuList, string itemType)
		{

			var getSkuDetailsTask = Task.Factory.StartNew<IList<string>> (() => {

				Bundle querySku = new Bundle ();
				querySku.PutStringArrayList (Constants.ItemIdList, skuList);


				Bundle skuDetails = _billingService.GetSkuDetails (Constants.APIVersion, _activity.PackageName, itemType, querySku);
				
				if (skuDetails.ContainsKey (Constants.SkuDetailsList)) {
					return skuDetails.GetStringArrayList (Constants.SkuDetailsList);
				}

				return null;
			});

			return getSkuDetailsTask;
		}
开发者ID:foxanna,项目名称:SimpleLocationAlarm,代码行数:26,代码来源:InAppBillingHelper.cs

示例13: newInstance

		public static SearchYearFragment newInstance(List<string> yearsIn)
		{
			SearchYearFragment yf = new SearchYearFragment ();

			Bundle bdl = new Bundle ();
			bdl.PutStringArrayList ("years", yearsIn);
			yf.Arguments = bdl;

			return yf;
		}
开发者ID:Cmaster14,项目名称:WilliesCycleApps,代码行数:10,代码来源:SearchYearFragment.cs

示例14: newInstance

		public static SearchPartFragment newInstance(List<string> partsIn)
		{
			SearchPartFragment pf = new SearchPartFragment ();

			Bundle bdl = new Bundle ();
			bdl.PutStringArrayList ("parts", partsIn);
			pf.Arguments = bdl;

			return pf;
		}
开发者ID:Cmaster14,项目名称:WilliesCycleApps,代码行数:10,代码来源:SearchPartFragment.cs

示例15: SaveState

        public override IParcelable SaveState()
        {
            Bundle state = null;

            if (_savedState.Any())
            {
                state = new Bundle();

                var fss = new IParcelable[_savedState.Count];
                for (var i = 0; i < _savedState.Count; i++)
                    fss[i] = _savedState.ElementAt(i);

                state.PutParcelableArray("states", fss);
                state.PutStringArrayList("tags", _savedFragmentTags);
            }

            for (var i = 0; i < _fragments.Count; i++)
            {
                var f = _fragments.ElementAtOrDefault(i);
                if (f == null)
                    continue;

                if (state == null)
                    state = new Bundle();
                var key = "f" + i;
                _fragmentManager.PutFragment(state, key, f);
            }
            return state;
        }
开发者ID:thefex,项目名称:MvvmCross-AndroidSupport,代码行数:29,代码来源:MvxCachingFragmentPagerAdapter.cs


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