Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

google searchbar in action

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

like image 940
Brian Avatar asked Feb 23 '15 11:02

Brian


1 Answers

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:

Use

like image 137
Kieron Avatar answered Oct 23 '22 02:10

Kieron