Android Question Picture + listview "a la" Lollipop

wimpie3

Well-Known Member
Licensed User
Longtime User
I'd like to mimic the Lollipop effect of a picture on top of a listview disappearing slowly when you scroll the listview down (while the listview itself also moves towards the top of the screen). Has anyone tackled this before? This effect is now showing up in a lot of apps using the material design pattern.
 

KMatle

Expert
Licensed User
Longtime User
Do you mean the behaviour like it is in facebook? (The control at the bottom moves out of the screen scrolling down and appears scrolling up?). If yes: Check the scrollposition and move the picture out of the screen (negative values will work) and back depending on the scroll direction/position. Change top+height of the listview ("docked" to the bottom of the pic) depending on the position of the picture and back.
 
Upvote 0
Top