Created
September 10, 2020 15:13
-
-
Save tugcearar/d8f6ecb7381fb52c88b600725ddc7fb9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void btnGeoWithAddress_Click(object sender, EventArgs e) | |
{ | |
search_view = base.LayoutInflater.Inflate(Resource.Layout.search_alert_layout, null); | |
AlertDialog.Builder builder = new AlertDialog.Builder(this); | |
builder.SetView(search_view); | |
builder.SetTitle("Search Location"); | |
builder.SetNegativeButton("Cancel", (sender, arg) => { builder.Dispose(); }); | |
search_view.FindViewById<Button>(Resource.Id.btnSearch).Click += btnSearchClicked; | |
alert = builder.Create(); | |
alert.Show(); | |
} | |
private void btnSearchClicked(object sender, EventArgs e) | |
{ | |
string searchText = search_view.FindViewById<TextView>(Resource.Id.txtSearch).Text; | |
GeocodeManager geocodeManager = new GeocodeManager(this); | |
geocodeManager.NearbySearch(CurrentPosition, searchText); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment