如何在Android上的谷歌地图上制作这个图像滑块(如状态栏)?
嗨,大家好!这是我第一次在android中的谷歌地图上看到像状态栏这样的图像滑块,我不知道该怎么做,我真的需要快速完成它,我尝试用谷歌搜索它,我发现的只是地图上的吐司或者点击地图时在地图上弹出一些消息,但这我不知道,也许他们是用 jQuery 制作的,因为我发现了许多滑块或制作了一些东西...请帮助
这里是地图图像的链接: http://s.joomeo.com/4f199b65d2760
我想知道它是否可以像某种纯文本一样,当点击时在地图上将地图视图可见性设置为 false
谢谢,任何帮助将不胜感激
Hi Guys! It's the first time I see an image slider like status bar over google maps in android, I don't know how to do it and I really need to do it quickly, I have tried to google it and all I found was toast on map or some message popup on map while clicking on map but this I don't know, maybe they made it in jQuery as I found many sliders in or made something ...plz help
here is link of map image :
http://s.joomeo.com/4f199b65d2760
i wonder if it can be like somehow plaintext and when clicking on map it set mapview visiblity to false
thanks and any help 'll be appreciated
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
MapView 是一个具有布局参数并允许您嵌入任何所需控件的 ViewController。您应该能够构建一个基本的滑块控件并将其嵌入到地图视图中,就像将其嵌入到 ListView 中一样。
The MapView is a ViewController that has layout parameters and lets you embed any controls you want. You should be able to build a basic slider control and embed that on your mapview the same way as you would embed it on a ListView for example.
您必须创建自定义
Overlays
才能在地图中获取该视图,假设您想在单击地图中的某些内容时显示粉红色视图。你可以谷歌一下如何做。You have to create custom
Overlays
to get that view in your map, assuming that you want to bring up that pink view, when you say, click on something in the map. You can google on how to do it.我花了很长时间才找到这个问题的解决方案,因为我还是 android 的初学者>>这个名为弹出窗口的滑块
这里是代码
it takes me long time to find the solution for this problem as i'm still beginner in android >>>this slider called popup window
here's the code