creating persistent search bar in android

本秂侑毒 提交于 2019-12-03 11:52:47

问题


I want a search box which sits on top of the layout like this:

http://www.google.com/design/spec/patterns/search.html#search-in-app-search

I do not know whether I have to build it myself from scratch using text boxes, white frames etc., or there is already a built-in widget or an open source work.

Actually designing everything from scratch does not seem to me right. Because by doing so I would have a incompatible view or user experience in future android APIs.

What are the options available and what is the most adopted approach?


回答1:


there is a library called persisten search which look likes google now, google play etc. have a look at it: https://github.com/Quinny898/PersistentSearch



来源:https://stackoverflow.com/questions/28288500/creating-persistent-search-bar-in-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!