Exemplo n.º 1
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            listItems = new List<MenuListItem> { 
				new MenuListItem {Title = "Bind to Array of Strings", PageType= typeof(ListActivityArray)}, 
				new MenuListItem {Title = "Bind to Data Model", PageType= typeof(ListActivityDataModel)},
				new MenuListItem {Title = "Customize List", PageType= typeof(MainCustomListActivity)},
				new MenuListItem {Title = "Grouping a list", PageType= typeof(MainActivityGrouped)}
			};

            ListAdapter = new MenuListItemAdapter(this, listItems);

        }
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            listItems = new List <MenuListItem> {
                new MenuListItem {
                    Title = "Bind to Array of Strings", PageType = typeof(ListActivityArray)
                },
                new MenuListItem {
                    Title = "Bind to Data Model", PageType = typeof(ListActivityDataModel)
                },
                new MenuListItem {
                    Title = "Customize List", PageType = typeof(MainCustomListActivity)
                },
                new MenuListItem {
                    Title = "Grouping a list", PageType = typeof(MainActivityGrouped)
                }
            };

            ListAdapter = new MenuListItemAdapter(this, listItems);
        }