I have a listview
which some rows are text and some are mapview
I able to select texts but i can't select mapviews
How i setup mapview
on adapter:
/**
* Initialises the MapView by calling its lifecycle methods.
*/
public void initializeMapView() {
if (mapView != null) {
// Initialise the MapView
mapView.onCreate(null);
// Set the map ready callback to receive the GoogleMap object
mapView.getMapAsync(this);
}
}
@Override
public void onMapReady(GoogleMap googleMap) {
MapsInitializer.initialize(context);
map = googleMap;
Message data = (Message) mapView.getTag();
if (data != null) {
setMapLocation(map, data);
}
}
}
I also tried below solutions:
googleMap.getUiSettings().setZoomControlsEnabled(false);
googleMap.getUiSettings().setCompassEnabled(false);
googleMap.getUiSettings().setMyLocationButtonEnabled(false);
googleMap.getUiSettings().setRotateGesturesEnabled(false);
googleMap.getUiSettings().setMapToolbarEnabled(false);
mapView.setClickable(false);
But does not works, what is the problem? and how can i fix it?
Thanks in advance,