Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我尝试显示()和隐藏()多个地图片段时,我的问题就出现了。使用 show()/hide() 不会更改地图。片段可以被移除或隐藏,但保留在屏幕中(脏)。
屏幕:
这里相关问题
我该如何纠正这个问题?
对于属于不同片段的重叠地图,我遇到了类似的问题。
这两件事帮助了我:
map:zOrderOnTop="false"
DialogFragment
dismiss()
Fragment
FragmentManager
什么版本的安卓?开发工具包?地图?
尝试更新: http ://www.androidpolice.com/2013/07/09/google-maps-for-android-gets-updated-with-promised-interface-refresh-functionality-enhancements/
可能是一个已知问题: https ://code.google.com/p/gmaps-api-issues/issues/detail?id=5027&q=fragment&colspec=ID%20Type%20Status%20Introduced%20Fixed%20Summary%20Stars%20ApiType% 20内部