title: Android layout similar to Google Now
body: <p>I'm having trouble deciding the best route to take for the layout I want for my application.  My thought is to have something very similar to Google Now's layout where it's a list of different types of cardviews that scroll with the entire page.  In my app I would have 3 card types, the 1st one which is static and fixed.  The 2nd one which is static but scrolls with the page. And the 3rd which can have "n" cards which all scroll with the page.</p>
  
  <p><img src="https://i.stack.imgur.com/gH5sJ.png" alt="My app layout">
  Every element in the 3rd card type will respond to a click event, which will launch a new fragment, and a long press event which I would like to eventually make the items actionable to both remove and rearrange certain elements.</p>
  
  <p>Problem is, I don't know the best practice to achieve my desired layout. Should I do it with my RecyclerView's adapter using different ViewHolders?  Going down that route seems like it would get messy pretty quick. One app that comes to mind that does something similar is Google Now which has the persistent search bar at the top.</p>
  
  <p>Any tips to get me going in the right direction are appreciated.</p>
  
  <p><strong>Edit:</strong> The most promising lead I found to achieve what I want comes from <a href="https://stackoverflow.com/questions/26530685/is-there-an-addheaderview-equivalent-for-recyclerview/26573338#26573338">Is there an addHeaderView equivalent for RecyclerView?</a>.  But my question is, how do I access the View, which would become my header, from my Fragment? From the looks of the code I basically let the Adapter inflate the view instead of the Fragment.</p>