Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我的 monodroid 项目中,我尝试将带有居中文本的图像添加到谷歌地图版本 2 的特定纬度/经度。
在版本 1 中,我通过在视图中创建图像和标签并将该视图作为子视图添加到地图中来添加它。
但在新版本中,我们无法将子视图添加到地图中。那么我们如何将这些项目添加到地图中呢?
编辑
其实我想展示这样的东西:
我们如何添加带有居中文本的标记?
看看DemoIconProvider.java和getIconData函数。它与您在屏幕上或此处看到的基本相同:
getIconData
与往常一样,您必须将其从 Java 世界转换为 C#。