在android中创建持久搜索栏 [英] creating persistent search bar in android
问题描述
我想要一个位于这样的布局顶部的搜索框:
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.
实际上,从头开始设计一切似乎都不对.因为这样做会在将来的android API中产生不兼容的视图或用户体验.
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?
推荐答案
有一个名为persistent search的库,它看起来像现在的google,google play等. .com/Quinny898/PersistentSearch> https://github.com/Quinny898/PersistentSearch
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
这篇关于在android中创建持久搜索栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!