Exemple #1
0
        protected override void OnCreate(Bundle?bundle)
        {
            base.OnCreate(bundle);

            SetContentView(Resource.Layout.Main);

            var expandableListView = FindViewById <ExpandableListView>(Resource.Id.myExpandableListview);

            expandableListView?.SetAdapter(new ExpandableDataAdapter <LocationModel>(this, LocationModel.CreateLocationList()));

            Title = "Locations Around The World";
        }
        public ViewController(IntPtr handle) : base(handle)
        {
            Title = "Locations Around The World";

            _locationList = LocationModel.CreateLocationList();
        }