【问题标题】:How to implement Searchview in the layout in Android如何在Android布局中实现Searchview
【发布时间】:2016-12-02 08:41:15
【问题描述】:

我正在尝试在布局文件中实现 searchView,就像其他视图一样,而不是在工具栏上。在我使用 AutoCompleteTextView 之前,但现在我想实现 SearchView。如果有人知道请帮忙。

Click here for the Image

提前致谢。

【问题讨论】:

  • 你有什么问题?
  • 我不知道从哪里开始。您可以在图片中看到我想要实现的内容。

标签: android android-layout searchview


【解决方案1】:

你可以找到很多例子。这里提供的最佳解决方案:

Creating a SearchView that looks like the material design guidelines

也有可用的库,最容易实现的库是

https://github.com/Quinny898/PersistentSearch

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-11-05
    • 1970-01-01
    • 1970-01-01
    • 2013-09-09
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多