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

            // Create your application here
            SetContentView(Resource.Layout.CategoriesLayout);

            list_items = new List <string>();

            list_items.Add("What is an automaton?");

            list_items.Add("Languages and automata");

            list_items.Add("Generative grammars for the four languages");

            list_items.Add("The pumping lemma");

            list_items.Add("Determinism and non-determinism");

            categoriesList = FindViewById <ListView>(Resource.Id.CategoriesList);

            MyListViewAdapter adapter = new MyListViewAdapter(this, list_items);

            categoriesList.Adapter = adapter;

            categoriesList.ItemClick += categoriesList_ItemClick;
        }
Beispiel #2
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            // Create your application here

            SetContentView(Resource.Layout.QuizesLayout);

            list_items1 = new List <string>();

            list_items1.Add("Quiz - What is an automaton?");

            list_items1.Add("Quiz - Languages and automata");

            list_items1.Add("Quiz - Generative grammars for the four languages");

            list_items1.Add("Quiz - Determinism and non-determinism");

            quizesList = FindViewById <ListView>(Resource.Id.QuizesList);

            MyListViewAdapter adapter1 = new MyListViewAdapter(this, list_items1);

            quizesList.Adapter = adapter1;

            quizesList.ItemClick += quizesList_ItemClick;
        }