0

我注意到WebView中builtInZoomControls的位置(底部,水平右侧)与MapView中的默认位置(底部,水平中心)不一致。

1)为什么不一致?(可能是要向 Google 提出的问题)

2) 有没有办法在不应用自定义缩放控件的情况下将 WebView 的 builtInZoomControls 水平居中?或者这是唯一的方法?

4

2 回答 2

0

When viewing maps in a WebView you are actually using the Browser app to view the Map Tiles. In order to change the zoom controls when in Web View you would have to manipulate the zoom controls of the browser being used to view the Map Tiles.

You should try manipulating the WebView zoom controls and not the MapView zoom controls.

于 2011-05-27T01:58:34.807 回答
0

根据我对 Android UI 的经验,这就是我注意到的

  1. 使用地图活动时,实际上没有理由向右对齐,您正在查看地图,即。可以随意滚动的 2D 表面。

浏览网站时,大多数内容从左侧开始并向右运行。

所以,在浏览网页时将控件放在右下方很有意义,为了不碍事,在使用地图时(缩放控件更重要),控件应该更突出,因此在中心,它仍然不会妨碍这里。

  1. 在第一次阅读您的帖子时,我打算建议使用自定义缩放控件,但我意识到您已经考虑过这一点。如果具有居中控件对您的应用程序至关重要,那么自定义控件似乎是我要采取的路线。
于 2010-08-10T18:34:02.020 回答