0

I am having one ImageView and below this ImageView, I am having one ListView. I want to scroll down the ListView from top and Zoom the ImageView when ListView scrolls down. Can anyone help ?

Basically, I want to zoom the ImageView which is on top of ListView when someone pulls the ListView from top.

Bunny
  • 576
  • 4
  • 19
  • If I interpreted correctly ,you can use `ListView.getFirstVisiblePosition()` and `ListView.getLastVisiblePosition()` to find out how far down the list view you are. And use this as a condition for your imageView height which you can set programatically using `getLayoutParams()`. –  Jul 27 '15 at 11:01
  • ImageView and ListView both are in 50-50 space vertically. The LIstView is already on top and i want to scroll it down. Is it possible ? – Bunny Jul 27 '15 at 11:02
  • I'm having trouble understanding... So you have an ImageView and a ListView. Does the ListView scroll properly? Is it functioning? If so, you can determine how far down the list view you scrolled and resize the imageView accordingly. –  Jul 27 '15 at 11:49

1 Answers1

0

Try This,

ListView and ScrollView with pull to zoom : https://github.com/Frank-Zhu/PullZoomView

Piyush Malaviya
  • 1,091
  • 13
  • 17