1

How to make a image view scroll vertically. Demo images are uploaded below.

How to shrink image view?

Image 1. enter image description here

Image 2. enter image description here

Image 3. enter image description here

when user scroll up imageview get shrink from image 1 view to image .3 view

when user scroll down imageview get enlarge from image 3 to image 1

How to acheive this. Is this possible to replicate in android

  • The key term for this is `CollapsingToolbarLayout`. If you search on google you can find some really good examples like this: https://github.com/hearsilent/AmazingAvatar – Mayur Gajra Jan 28 '22 at 12:41

1 Answers1

0

You can achieve such a behavior with CoordinatorLayout https://guides.codepath.com/android/handling-scrolls-with-coordinatorlayout

Unfortunately i won't do a solution for you. You can find example code here.

Thomas Meinhart
  • 659
  • 2
  • 7
  • 28
  • I tried using coordinate layout but I am not able to achieve that. If possible can you make solution for me. I am new to android. That's why I am asking. Thankyou – Suman Radhakrishnan Jan 28 '22 at 12:31