public async void ShowPlayListDialog() { try { MaterialDialog.Builder progressDialog = new MaterialDialog.Builder(ActivityContext).Theme(AppSettings.SetTabDarkTheme ? Theme.Dark : Theme.Light); progressDialog.Title(ActivityContext.GetText(Resource.String.Lbl_Checking_PlayLists_info)); progressDialog.Content(ActivityContext.GetText(Resource.String.Lbl_Please_wait)); progressDialog.Progress(true, 0); progressDialog.ProgressIndeterminateStyle(true); MaterialDialog dialog = progressDialog.Build(); dialog.Show(); if (ListUtils.PlayListVideoObjectList.Count == 0) { await ApiRequest.PlayListsVideosApi(ActivityContext); } dialog.Dismiss(); List <string> arrayAdapter = new List <string>(); MaterialDialog.Builder dialogList = new MaterialDialog.Builder(ActivityContext).Theme(AppSettings.SetTabDarkTheme ? Theme.Dark : Theme.Light); var count = ListUtils.PlayListVideoObjectList.Count; if (count > 0) { for (int i = 0; i < count; i++) { if (!string.IsNullOrEmpty(ListUtils.PlayListVideoObjectList[i].Name)) { arrayAdapter.Add(ListUtils.PlayListVideoObjectList[i].Name); } } } dialogList.Title(ActivityContext.GetText(Resource.String.Lbl_Select_One_Name)); dialogList.Items(arrayAdapter); dialogList.PositiveText(ActivityContext.GetText(Resource.String.Lbl_Creat_new)).OnPositive(this); dialogList.NegativeText(ActivityContext.GetText(Resource.String.Lbl_Cancel)).OnNegative(this); dialogList.ItemsCallback(this).Build().Show(); } catch (Exception exception) { Console.WriteLine(exception); } }