I have a container (RecycleView) with some insides. It is located between the toolbar (Toolbar) and the line (ImageView), which is attached to it below.

I want to make it so that the user can freely clamp this line (or the bottom of the container) and drive it up and down the screen, while dynamically changing the height of the container to which the line is attached. "Clamp and stretch" in other words.

So far I have written a method that hides the container if it is active, and makes it active if it is hidden. What does not suit me in full.

I would be grateful for any help.

    0