我注意到WebView中builtInZoomControls的位置(底部,水平右侧)与MapView中的默认位置(底部,水平中心)不一致。
1)为什么不一致?(可能是要向 Google 提出的问题)
2) 有没有办法在不应用自定义缩放控件的情况下将 WebView 的 builtInZoomControls 水平居中?或者这是唯一的方法?
我注意到WebView中builtInZoomControls的位置(底部,水平右侧)与MapView中的默认位置(底部,水平中心)不一致。
1)为什么不一致?(可能是要向 Google 提出的问题)
2) 有没有办法在不应用自定义缩放控件的情况下将 WebView 的 builtInZoomControls 水平居中?或者这是唯一的方法?
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.
根据我对 Android UI 的经验,这就是我注意到的
浏览网站时,大多数内容从左侧开始并向右运行。
所以,在浏览网页时将控件放在右下方很有意义,为了不碍事,在使用地图时(缩放控件更重要),控件应该更突出,因此在中心,它仍然不会妨碍这里。