Button onclicklistener on infowindow in google map

Ankit Sharma picture Ankit Sharma · Nov 29, 2013 · Viewed 18.2k times · Source

How can i detect the button setOnClickListener in info window on google map? Actually in my info window i have a button and i want to click on that button. Is this possible to do this?

Answer

Ba Tới Xì Cơ picture Ba Tới Xì Cơ · Nov 29, 2013

Try it

mMap.setOnInfoWindowClickListener(new OnInfoWindowClickListener() {
        @Override
        public void onInfoWindowClick(Marker marker) {

        }
    });