floatingsearchview icon indicating copy to clipboard operation
floatingsearchview copied to clipboard

Dismiss search on touch suggestions list margins

Open eduardbosch opened this issue 7 years ago • 2 comments

Hi to all 🎉

I've fixed an issue where touch is propagated below floating search views when it's focused.

The bug

I've checked the issue in the sample app by removing the 5dp margins to the search_results_list in fragment_sliding_search_results_example_fragment.xml. Then you can see that this bug appears:

wrong_scroll

The fix

To avoid this, I've changed the touch listener to dismiss the search from mSuggestionsSection to the FloatingSearchView itself, because it occupies the whole screen.

Now it works well

good_scroll

eduardbosch avatar Jul 18 '17 14:07 eduardbosch

Added maven library to use jitpack

eduardbosch avatar Jul 18 '17 16:07 eduardbosch

Updated some missing setEnabled refactoring from mSuggestionsSection to view itself.

eduardbosch avatar Jul 19 '17 15:07 eduardbosch