You do not need an empty or invisible view.
Basically, you add a view (or layout) to the ListView as header using addHeaderView() . After that you cancel
overScrollBy(int deltaX, int deltaY, int scrollX, int scrollY, int scrollRangeX, int scrollRangeY, int maxOverScrollX, int maxOverScrollY, boolean isTouchEvent)
ListView method. You control the height of the view that you added as the title in the overScrollBy method with the overScrollBy parameter.
Check this library if you want to avoid all the hard work https://github.com/Gnod/ParallaxListView .
Onur source share