Hi,
I am showing infowindow on click of map pin. In infowindow I am showing text, spinner and button.
void OnInfoWindowClick(object sender, GoogleMap.InfoWindowClickEventArgs e)
{
var customPin = GetCustomPin(e.Marker);
if (customPin == null)
{
throw new Exception("Custom pin not found");
}
if(customPin.Name != null) { var address = Android.Net.Uri.Parse("https://google.com"); var intent = new Intent(Intent.ActionView, address); intent.AddFlags(ActivityFlags.NewTask); Android.App.Application.Context.StartActivity(intent); } }
when I am clicking on infowindow or any control like spinner or button, it is redirecting me on google.com which I have written in my code.
I do not have any idea how can I handle button click event and spinner selection change here.
Can anyone suggest me the way to handle it?