I am trying to use parallel scrolling in android.i.e.i have two view in a layout a mapview
on the top and a listview
in the bottom.when i scroll up in the listview
, the mapview should also scrollup.as we keep scrolling the list should cover the whole screen.
i have tried getting the cordinates of the listview using the ViewTreeObserver.onGlobalLayoutListener
and
moving the listview on touch,which is not working out. can i get any suggestions on how to proceed.
Edit:
I managed to get desired effect using parallaxScrollview
. But how do i make the backGround image clickable in parallaxscrollview