setContentView() slow with map fragment

后端 未结 2 1686
-上瘾入骨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:13

    I've found that this can be pretty slow if you have a debugging session connected, but is usually a more acceptable speed when you don't. If it runs faster with the USB cable disconnected, that's probably why.

提交回复
热议问题