Search code examples
androidviewscrollview

Scaling a View when using a Scroll View


Building an app , i have this big scroll view and a calendar on top , the calendar is not part of the scroll view , i want when i scroll down that the calendar will be minimized and when i scroll up i want it to pop up or scale in height to its original size , what should i do ?

i dont really know any animations Technics in android and i assume this is not to hard to grasp. i should consider listening to the scroll view events i guess and by that i can minimize the calendar view i guess....

please help.


Solution

  • Put the calendar view inside collapsing toolbar layout and rest of the scrollable content inside the nested scrollview. It is the best way to do it.