setContentView() slow with map fragment

后端 未结 2 1685
-上瘾入骨i
-上瘾入骨i 2020-12-28 21:52

I am working on an app that shows a google map (api v2) as a fragment. When the app loads it shows a blank white screen for a couple of seconds before showing the map. I h

2条回答
  •  情话喂你
    2020-12-28 22:31

    This is a drawback of using a GLSurfaceView such as the new maps v2 in Android. The delay is caused by the initialisation of the GLSurfaceView. See here http://code.google.com/p/gmaps-api-issues/issues/detail?id=4639 for a brief explanation near post #5 from a Googler and a snippet to help this problem (a little). Please star the issue to increase its priority.

提交回复
热议问题