title: Implementing SearchView as per the material design guidelines
body: <p>I have been looking for ways to implement a searchview in the activity toolbar (actionbar) as per the <a href="http://www.google.com/design/spec/patterns/search.html#search-in-app-search" rel="noreferrer">material design guidelines.</a></p>
  
  <p>On clicking on the search icon, the entire toolbar animates to have only the search EditText with white background with suggestions appearing in the main view instead of a drop down.</p>
  
  <p>Here is a screenshot from the guidelines:
  <img src="https://i.stack.imgur.com/NW82t.png" alt="enter image description here"></p>
  
  <p>Here is a gif from the Gmail Inbox implementation:
  <img src="https://i.stack.imgur.com/OAwib.gif" alt="enter image description here"></p>
  
  <p>I have been looking for code examples and tutorials but so far I have been unsuccesful. How do I go about doing this?</p>