Beispiel #1
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            SetContentView(Resource.Layout.aspinnertest);

            var spinner = FindViewById <Spinner>(Resource.Id.spntest);

            _address = ConAddress.GetList("");
            var adapter = new CustomSpinnerAdapter(this, _address);

            spinner.Adapter       = adapter;
            spinner.ItemSelected += SpinnerItemSelected;
        }
Beispiel #2
0
        public void refreshItems()
        {
            var items = ConAddress.GetList(txtsearch.Text);

            lvlist.Adapter = new AdpAddressList(this, items);
        }