public void OnLoadStarted()
        {
            MyListViewAdapter adapter = (MyListViewAdapter)listView.GetAdapter();

            Java.Util.ArrayList dataPage = getDataPage(10);
            for (int i = 0; i < dataPage.Size(); i++)
            {
                adapter.Add((Java.Lang.Object)dataPage.Get(i));
            }
            adapter.NotifyLoadingFinished();
        }
Ejemplo n.º 2
0
        public void OnRefreshRequested()
        {
            MyListViewAdapter currentAdapter = (MyListViewAdapter)listView.GetAdapter();

            Java.Util.ArrayList dataPage = getDataPage(10);

            for (int i = 0; i < dataPage.Size(); i++)
            {
                currentAdapter.Add(0, dataPage.Get(i));
            }

            srb.EndRefresh(false);
        }
Ejemplo n.º 3
0
        protected override void OnPostExecute(Java.Lang.Object result)
        {
            base.OnPostExecute(result);

            Java.Util.ArrayList dataPage = (Java.Util.ArrayList)result;
            MyListViewAdapter   adapter  = (MyListViewAdapter)listView.GetAdapter();

            for (int i = 0; i < dataPage.Size(); i++)
            {
                adapter.Add(dataPage.Get(i));
            }

            adapter.NotifyLoadingFinished();
        }