protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            SetContentView(Resource.Layout.activity_keyword);
            // Instantiate the SearchService object.
            ApiKey        = Intent.Extras.GetString("apiKey");
            SearchService = SearchServiceFactory.Create(this, Uri.Encode(ApiKey));

            QueryInput             = FindViewById <EditText>(Resource.Id.edit_text_text_search_query);
            LatInput               = FindViewById <EditText>(Resource.Id.edit_text_text_search_location_lat);
            LngInput               = FindViewById <EditText>(Resource.Id.edit_text_text_search_location_lng);
            RadiusInput            = FindViewById <EditText>(Resource.Id.edit_text_text_search_radius);
            PoiTypeSpinner         = FindViewById <Spinner>(Resource.Id.spinner_text_search_poitype);
            PoiTypeSpinner.Adapter = new ArrayAdapter <LocationType>(this, Android.Resource.Layout.SimpleSpinnerItem, LocationType.Values().ToList());

            Switch UsePOITypeSwitch = FindViewById <Switch>(Resource.Id.switch_text_search_poitype);

            UsePOITypeSwitch.CheckedChange += delegate(object sender, CompoundButton.CheckedChangeEventArgs e)
            {
                PoiTypeSpinner.Enabled = e.IsChecked;
            };
            CountryInput   = FindViewById <EditText>(Resource.Id.edit_text_text_search_country);
            LanguageInput  = FindViewById <EditText>(Resource.Id.edit_text_text_search_language);
            PageIndexInput = FindViewById <EditText>(Resource.Id.edit_text_text_search_pageindex);
            PageSizeInput  = FindViewById <EditText>(Resource.Id.edit_text_text_search_pagesize);
            ResultTextView = FindViewById <TextView>(Resource.Id.response_text_search);

            Childern = FindViewById <Switch>(Resource.Id.switch_text_search_children);

            Search = FindViewById <Button>(Resource.Id.button_text_search);

            Search.Click += delegate { ExecTextSearch(); };

            PoiTypeSpinner.Enabled = false;
        }
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            Xamarin.Essentials.Platform.Init(this, savedInstanceState);
            SetContentView(Resource.Layout.activity_place_search);

            ApiKey        = Intent.Extras.GetString("apiKey");
            SearchService = SearchServiceFactory.Create(this, Uri.Encode(ApiKey));

            ResultTextView         = FindViewById <TextView>(Resource.Id.textview_text_search_results);
            QueryInput             = FindViewById <EditText>(Resource.Id.edittext_text_search_query);
            LatitudeInput          = FindViewById <EditText>(Resource.Id.edittext_lat);
            LongitudeInput         = FindViewById <EditText>(Resource.Id.edittext_lon);
            RadiusInput            = FindViewById <EditText>(Resource.Id.edittext_radius);
            LanguageInput          = FindViewById <EditText>(Resource.Id.edittext_language);
            PageIndexInput         = FindViewById <EditText>(Resource.Id.edittext_page_index);
            PageSizeInput          = FindViewById <EditText>(Resource.Id.edittext_page_size);
            PoiTypeSpinner         = FindViewById <Spinner>(Resource.Id.spinner_nearby_search_poitype);
            PoiTypeSpinner.Adapter = new ArrayAdapter <LocationType>(this, Android.Resource.Layout.SimpleSpinnerItem, LocationType.Values().ToList());
            BoundStrict            = FindViewById <Switch>(Resource.Id.switch_nearby_search_strict_bounds);
            Switch UsePOITypeSwitch = FindViewById <Switch>(Resource.Id.switch_nearby_search_poitype);

            UsePOITypeSwitch.CheckedChange += delegate(object sender, CompoundButton.CheckedChangeEventArgs e)
            {
                PoiTypeSpinner.Enabled = e.IsChecked;
            };

            SearchNearbyPlaceButton        = FindViewById <Button>(Resource.Id.btn_search_nearby_place);
            SearchNearbyPlaceButton.Click += delegate { ExecPlaceSearch(); };

            PoiTypeSpinner.Enabled = false;
        }