arimorty / floatingsearchview

A search view that implements a floating search bar also known as persistent search
https://github.com/arimorty/floatingsearchview/blob/master/README.md
Apache License 2.0
3.54k stars 668 forks source link

Question: FloatingSearchView behavior with RecyclerView #56

Closed marcellogalhardo closed 8 years ago

marcellogalhardo commented 8 years ago

Hi, Good Morning. I'm using the FloatingSearchView on a Activity that has a RecyclerView. I'm having trouble doing two things:

  1. Defining a behavior to hide it when an user scroll the RecyclerView?
  2. How to separate a space at the top of the screen so that the SearchView not get over the first item in the list? And allow to scroll to the items to be played below the SearchView?

Sorry for my English. Thanks!

arimorty commented 8 years ago

Hi @marcellogalhardo

  1. This library does not support this behavior, but it will be part of the milestone 2.3.0. This means that release 2.2.0 that contains some important stability improvements will be released first, and then the focus will be on 2.3.0 which will contain new features (including what you mentioned) Hopefully release 2.2.0 will be out within a week.
  2. This can be done easily by adding paddingTop to your RecyclerView as mentioned here

I hope your questions were answered.

marcellogalhardo commented 8 years ago

You answered my questions. I'll be watching for the release of Release 2.3.0. Thank you.