예제 #1
0
        public void Navigate(RootElement root_element_next_screen)
        {
            DialogAdapter da = new DialogAdapter(this, root_element_next_screen);
            ListView      lv = new ListView(this)
            {
                Adapter = da
            };

            this.SetContentView(lv);

            return;
        }
예제 #2
0
        public DialogHelper(Context context, ListView dialogView, RootElement root)
        {
            this.Root         = root;
            this.Root.Context = context;

            dialogView.Adapter    = this.DialogAdapter = new DialogAdapter(context, this.Root);
            dialogView.ItemClick +=
                // mc++
                new EventHandler <AdapterView.ItemClickEventArgs>(dialogView_ItemClick)
                // new EventHandler<ItemEventArgs>(ListView_ItemClick) // obsolete
            ;
            dialogView.ItemLongClick += ListView_ItemLongClick;;
            dialogView.Tag            = root;
        }