google-maps-lite

Google Maps Lite Mode causes jank in RecyclerView

限于喜欢 提交于 2019-11-28 03:08:41
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 new feature which returns bitmaps instead of a full-blown map as a replacement to the Google Static Maps API . MapView requires that you call onCreate() , onResume() , onPause() , onDestroy() etc. from the parent Activity/Fragment's corresponding method. Where is the proper place to call these from the RecyclerView.Adapter and/or RecyclerView.ViewHolder ? How can I clean up recycled MapViews so that memory doesn't leak, while keeping

Google Maps Lite Mode causes jank in RecyclerView

风流意气都作罢 提交于 2019-11-27 05:04:11
问题 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 new feature which returns bitmaps instead of a full-blown map as a replacement to the Google Static Maps API . MapView requires that you call onCreate() , onResume() , onPause() , onDestroy() etc. from the parent Activity/Fragment's corresponding method. Where is the proper place to call these from the RecyclerView.Adapter and/or