Android - scrolling out/collapsing an element while scrolling in ListView

I have following scenario:

ImageView, TabHost that has two tabs. Both of these tabs have ListView inside.

What I want to achieve is:

While scrolling up / down in the ListView in the tab - scroll or collapse the ImageView on the top.

Meaning that when I will be scrolling down the ImageView will be disappearing as I will be scrolling down. If I will be scrolling up, ImageView will be appearing again.

I would like to achieve this without using ListView inside a ScrollView (which hasn't produced good results so far).

How would I go about this to achieve it?

Answers

Sign In or Register to comment.