Esempio n. 1
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            // Set our view from the "main" layout resource
            //SetContentView(Resource.Layout.activity_main);
            //ListAdapter = new ArrayAdapter<string>(this, Android.Resource.Layout.SimpleListItem1, countries);

            ListAdapter = new CustomAdapter(this, countries);
        }
Esempio n. 2
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            //Sisse ehitatud Adapter

            /*//<--->
             * ListAdapter = new ArrayAdapter<string>(this
             *   , Android.Resource.Layout.SimpleExpandableListItem1, food);
             *///<--->
            ListAdapter         = new CustomAdapter(this, food);
            ListView.ItemClick += ListView_Click;
        }