Closed GoogleCodeExporter closed 9 years ago
Wasn't sure how to change to type of issue to "Enhancement"...
Original comment by vinaydan...@gmail.com
on 13 Aug 2014 at 6:08
[deleted comment]
Effectively, that could be done.
However, there is already a simple solution to solve such issues: in your own
"MyInfoWindow" constructor, you can get the view, and set another
OnTouchListener to it.
It will replace the OnTouchListener previously set in the MarkerInfoWindow
constructor.
public MyInfoWindow(MapView mapView) {
super(R.layout.bonuspack_bubble, mapView);
getView().setOnTouchListener(new View.OnTouchListener() {
@Override public boolean onTouch(View v, MotionEvent e) {
if (e.getAction() == MotionEvent.ACTION_UP){
//Do here whatever you want. Maybe nothing.
}
return true;
}
});
}
The idea behind getView() is to let developers full access to their custom
views.
So in fact, I prefer this approach to a more dedicated/restricted
setOnMarkerInfoWindowTouchListener() method.
Original comment by mathieu....@gmail.com
on 16 Aug 2014 at 6:06
Original comment by mathieu....@gmail.com
on 1 Sep 2014 at 3:47
Original issue reported on code.google.com by
vinaydan...@gmail.com
on 13 Aug 2014 at 6:06