'How to implement a partially sticky header on Android/Kotlin

I have a header which I only want to show the bottom half as the user keeps scrolling. Are there any native solution for that? Here is what I want to do: enter image description here



Solution 1:[1]

I think it might have been already answered by @ianhanniballake here.

He suggested using an AppBarLayout. Inside you can have the toolbar and under it can be your view that you want to stick to the toolbar when scrolling.

Let me know if AppBarLayout helps in your situation or not.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 rogowskibart