Android的:谷歌的MapView显示进度指标地图加载进度、加载、指标、地图

由网友(爱。没那么简单°)分享简介:有没有听,如果 图形页面 仍在加载?因为我想显示进度指示器(如沙漏),而图形页面正在下载的地图图块。Is there a way to listen if a MapView is still loading? Because I want to show a progress indicator (such as...

有没有听,如果 图形页面 仍在加载?因为我想显示进度指示器(如沙漏),而图形页面正在下载的地图图块。

Is there a way to listen if a MapView is still loading? Because I want to show a progress indicator (such as an hourglass) while the MapView is downloading the map tiles.

任何解决方案?

推荐答案

的的onDraw 以图形页面文件说

我们绘制地图背景(装载砖如适用)

"We draw the map background (loading tiles as appropriate)"

您可以尝试扩展图形页面和隐藏进度指示条的onDraw结束。但我的猜测是,该MapTiles的异步加载等等统统加载MapTiles在你的进度条将完成。

You could try extending MapView and hiding progress indicator as onDraw finishes. But my guess would be that the MapTiles are loaded asynchronously so your progress bar would finish before the MapTiles were all loaded.

阅读全文

相关推荐

最新文章