如何实现搜索栏像Android的Gmail应用程序? [英] How to implement Search Bar like gmail app in android?

查看:147
本文介绍了如何实现搜索栏像Android的Gmail应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想实现的搜索的功能在我的Andr​​oid应用程序类似,最新的Gmail应用程序(操作栏中的搜索图标)。

I am trying to implement the Search functionality in my android app similar to latest gmail app (search icon in the action bar).

在攻的搜索图标,操作栏变成一个搜索场左侧背部按钮,在右侧的麦克风按钮。我想在我的应用程序相同的组件。

On tapping the Search icon, the action bar turns into a search field with a back button on the left side, and a microphone button on the right side. I want to have the same component in my app.

有没有图书馆或教程吗?

Is there any library or tutorial for this?

这是可能的,以支持这种类型的非棒棒糖版本的材料设计搜索过。 ?

Is this possible to support this type of material design search in non-lollipop versions too. ?

推荐答案

该库要做到这一点,它不会做的唯一事情是涟漪,但我希望你可以和其他资源很容易实现它们:

This library to do this, the only thing it does not do is the ripples, but I expect you could implement them quite easily with other resources:

<一个href="https://github.com/Quinny898/PersistentSearch">https://github.com/Quinny898/PersistentSearch

下面在完成它的工作的图像

Here the image of the work done in it.

这篇关于如何实现搜索栏像Android的Gmail应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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