在原生Android应用中添加谷歌地图上的搜索工具栏 [英] Add search toolbar over google map like in native android app

查看:117
本文介绍了在原生Android应用中添加谷歌地图上的搜索工具栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在本地Google地图应用中实现搜索工具栏。我怎样才能做到这一点?可能是原生的方式来实现这个功能?

I want to implement search toolbar like in native google maps app. How can I make this? May be there is native way to implement this feature?

推荐答案

你应该去使用AutoSuggestEditext,并提供像谷歌一样的背景效果,并把左和右图片由 Relativelayout

You should go for use AutoSuggestEditext and give background effect like google have and put left and right image by Relativelayout

以下是自动建议进行地方搜索的示例。

Here is example for Auto Suggest for place search .

Auto Place complete

希望你能理解。

这篇关于在原生Android应用中添加谷歌地图上的搜索工具栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆