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

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