title: Android: resize images on scroll in scrollview
body: <p>I believe I need a <code>ScrollView</code> for this kind of behaviour. I have attempted to use a <code>CoordinatorLayout</code> but this causes a parallax of the images at the top, whereas the behaviour I would like would be like the below images:</p>
  
  <p><a href="https://i.stack.imgur.com/zltsx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zltsx.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/qi5Hb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qi5Hb.png" alt="enter image description here"></a></p>
  
  <p>The behaviour I would like is for the user to scroll down the page (increasing the amount of the view they can see at the bottom, in grey) and as they scroll, the images at the top (in red) decrease in size yet keep their aspect ratio. </p>
  
  <p>The <code>CoordinatorLayout</code> parallaxing is not what I want, as all it does is parallax the images - it doesn't do any resizing as far as I'm aware. </p>
  
  <p>Any ideas how to do this?</p>