I have a RecyclerView
which is a vertical scrolling list of items. Each list item contains a Google Maps V2 MapView in Lite Mode. I\'m taking advantage of this
I have removed this Override method because every time this gives empty map when testing and it works perfectly in my recyclerView.
@Override
public void onViewRecycled(ViewHolder holder)
{
// Cleanup MapView here?
if (holder.gMap != null)
{
holder.gMap.clear();
holder.gMap.setMapType(GoogleMap.MAP_TYPE_NONE);
}
}
You can try it if above code does not work in your case as well.