Пример #1
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate (bundle);
            SetContentView (Resource.Layout.ModuleSelect);
            SetSupportActionBar(FindViewById<Toolbar>(Resource.Id.toolbar));
            SupportActionBar.SetDisplayHomeAsUpEnabled(true);
            //this.SetSystemBarBackground (Color.ParseColor (DataHolder.Current.CurrentLevel.Color));

            moduleAdapter = new ModuleAdapter(this, DataHolder.Current.CurrentLevel.Modules.ToArray());
            var moduleListView = FindViewById<ListView> (Resource.Id.lvModules);
            moduleListView.ItemClick += ModuleListView_ItemClick;
            moduleListView.Adapter = moduleAdapter;
        }
Пример #2
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);
            SetContentView(Resource.Layout.ModuleSelect);
            SetSupportActionBar(FindViewById <Toolbar>(Resource.Id.toolbar));
            SupportActionBar.SetDisplayHomeAsUpEnabled(true);
            //this.SetSystemBarBackground (Color.ParseColor (DataHolder.Current.CurrentLevel.Color));

            moduleAdapter = new ModuleAdapter(this, DataHolder.Current.CurrentLevel.Modules.ToArray());
            var moduleListView = FindViewById <ListView> (Resource.Id.lvModules);

            moduleListView.ItemClick += ModuleListView_ItemClick;
            moduleListView.Adapter    = moduleAdapter;
        }