how get the progress status of loading mapview in android?

前端 未结 2 363
无人及你
无人及你 2021-01-13 08:33

while the map is in loading state i want to put a progressbar at the center of mapview.

how to get the progress?? and how to do??

give me some example..

2条回答
  •  太阳男子
    2021-01-13 09:11

    I don't think there is any reasonable way of doing it. Note that Google isn't doing this either in their map applications. It is pretty clear just looking at the page to see if tiles are still loading, so I don't think there is actually any need to put in a progress indicator.

    The MapView has a method canCoverCenter() which can tell you if the center tile is available, but there is nothing for the rest of the tiles.

提交回复
热议问题