示例#1
0
        private void Spinner_ItemSelected(object sender, AdapterView.ItemSelectedEventArgs e)
        {
            Spinner spinner = (Spinner)sender;
            string  toast   = spinner.GetItemAtPosition(e.Position).ToString();

            Toast.MakeText(this, toast, ToastLength.Long).Show();
            mCarName = toast;

            var url        = "http://10.0.2.2:4344/image/" + toast;
            var imageBimap = HttpImage.GetImageBitmapFromUri(url);

            mCarView.SetImageBitmap(imageBimap);
        }