問題描述:
tabHost 管理多個Fragment,每個Fragment嵌入百度地圖,在切換過程會出現黑屏現象
解決步驟
- 用TextureMapView 代替MapView
layout.xml
<com.baidu.mapapi.map.TextureMapView
android:id="@+id/map_view"
android:layout_width="match_parent"
android:layout_height="match_parent">
</com.baidu.mapapi.map