gpt4 book ai didi

android - 如何在 Android 版 map v2 中将版权移至顶部?

转载 作者:太空宇宙 更新时间:2023-11-03 10:45:21 25 4
gpt4 key购买 nike

根据 attribution guidelines of google maps在我的 Android 应用程序中显示 map 时,我必须显示 Google 和 map 提供商的版权。版权通常显示在 map View 的底部。
问题是我的应用程序底部有一个圆形小部件,它隐藏了一些版权声明。
这就是为什么我想使用

将版权移动到 map View 的顶部

GoogleMap.setPadding(0, 0, 0, mapViewHeight - copyRightFontHeight).

setPadding 带来的变化是:

  • Camera movements via API calls or button presses (e.g., compass, my location, zoom buttons) will be relative to the padded region.
  • getCameraPosition() will return the center of the padded region.
  • Projection.getVisibleRegion() will return the padded region.
  • UI controls will be offset from the edge of the container by the specified number of pixels.

但我想要所有这些函数的标准行为(那些没有填充的函数)!

所以要么:我怎样才能只移动版权,而不改变上述功能的行为?
或者:如何使这些功能在填充边界之外正常工作?

最佳答案

Do I need to use the text provided on the imagery?

The automatically generated Google logo and data provider attribution may only be removed or obstructed if reintroduced in a visible form elsewhere within the Content (e.g. photo caption below a Google Earth still). In other words, your text must be as visible as it would have been if you had used the default text that we provide.

看起来您可以在自己身上放置相同的文本,只要它同样可见即可。我建议使用负边距将默认文本降低到 View 之外,然后使用 TextView 显示版权文本。

关于android - 如何在 Android 版 map v2 中将版权移至顶部?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24973373/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com