Esempio n. 1
0
        private async void LoadMoreFeed()
        {
            ListView listViewMore = FindViewById <ListView>(Resource.Id.MoreViewList);

            if (Joyces.Platform.AppContext.Instance.Platform.MoreList != null)
            {
                CustomListViewMoreAdapter adapter = new CustomListViewMoreAdapter(this, Joyces.Platform.AppContext.Instance.Platform.MoreList, this);

                RunOnUiThread(() =>
                {
                    if (adapter != null)
                    {
                        listViewMore.Adapter = adapter;
                    }

                    listViewMore.ItemClick += listViewMore_ItemClick;
                });
            }
            else
            {
                progress.Show();
                //Alert(Lang.MESSAGE_HEADLINE, Lang.SERVICE_NOT_AVAILABLE, Lang.BUTTON_OK, "Try again", "more");
                //Alert(Lang.MESSAGE_HEADLINE, Lang.SERVICE_NOT_AVAILABLE, Lang.BUTTON_OK);
            }
        }
Esempio n. 2
0
        private async void SetMoreListAdapter()
        {
            listviewMoreGlobal = new ListView(this);// FindViewById<ListView>(Resource.Id.MoreViewList);
            CustomListViewMoreAdapter adapter = new CustomListViewMoreAdapter(this, Joyces.Platform.AppContext.Instance.Platform.MoreList, this);

            listviewMoreGlobal.Adapter = adapter;
        }