如何获得谷歌搜索栏现在将我的应用程序? [英] How to get the Google Now searchbar into my app?

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

问题描述

谷歌刚刚从谷歌实现其搜索栏现在到Play商店的应用程序,你可以在下面的GIF见。

我怎样才能实现这个动作条搜索栏到我自己的应用程序吗? 我想有

  • 风格
  • 汉堡动画
  • 从工具栏按钮接取
  • 麦克风按钮
  • 在棒棒糖设备涟漪效应

我已经是

  • 的列表项的布局
  • 在旧的搜索查看的动作条里面

任何想法?在此先感谢

解决方案

我创造了这个库来做到这一点

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

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

下面是其使用的GIF:

Google has just implemented their searchbar from Google Now into the play store application as you can see in the gif below.

How can I implement this actionbar searchbar into my own app? I'd like to have the

  • style
  • hamburger animation
  • acess from toolbar button
  • microphone button
  • ripple effect on lollipop devices

What I already have is

  • the layout for a list item
  • the "old" searchview inside the actionbar

Any ideas? thanks in advance

解决方案

I created 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:

https://github.com/Quinny898/PersistentSearch

Here's a gif of its use:

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

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