How to get the Google Now searchbar into my app?

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:

    使用


    for that you need to use material search bar. Below is link for github.

    Please download code. https://github.com/ManuelPeinado/GlassActionBar https://github.com/ManuelPeinado/GlassActionBar/tree/master/samples-stock

    And modify this code as you want. it will help.

    链接地址: http://www.djcxy.com/p/83872.html

    上一篇: JsonPath中的数据与Wiremock匹配

    下一篇: 如何让Google即时搜索栏进入我的应用程序?