自定义对话框内的 Googlemap
有谁知道这是否可能?我有一个包含视图翻转器的自定义对话框。第一个视图是带有一些记录的线性布局。我希望第二个视图是具有相同记录的谷歌地图,但这次是基于位置的。
由于mapview需要扩展mapactivity,并且调用对话框的activity已经设置好了,我开始认为这是不可能的。
Do anyone know if this is possible? I have a custom dialog box that contains a viewflipper. The first view is a linearlayout with some records. I wanted the second view to be the google maps with the same records but this time location based.
Since the mapview needs to extend mapactivity, and the activity that calls the dialog is already set up, I's starting to think it's not possible.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
绝对地!当我将
android:theme="@android:style/Theme.Dialog"
添加到清单中的地图活动时,它会显示为一个对话框。然后,您可以通过调整地图活动布局来控制对话框的显示方式。Absolutely! When I add
android:theme="@android:style/Theme.Dialog"
to my map activity in the manifest, it comes up as a dialog. You can then control how the dialog appears by tweaking your map activity layout.