I
I
Ivan Pavlov2016-12-14 11:36:19
Android
Ivan Pavlov, 2016-12-14 11:36:19

How to position LinearLayout above RecyclerView in CoordinatorLayout?

Hello! The task is the following: there is a search bar and a list, when scrolling through which the search bar should be hidden. I was able to google that hiding is possible only through layout_behavior. The question is, how can you implement the capabilities of the AppBarLayout, which is above the rest of the View, can be hidden and allows the scrollable list to take its place? If you put LinearLayout in AppBarLayout then layout_behavior doesn't work. Maybe there are ready-made solutions? Really nobody faced such task?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
jinnerrer, 2016-12-22
@jinnerrer

A year ago, I experienced something similar. True then I used ListView. I decided to modify my listview adapter so that when the 1st element is hidden from the screen, it hides the searchview (it looked good with animation).
And so, everything is perfectly described here - https://github.com/codepath/android_guides/wiki/Ha...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question