Spotify的ListView的头成像效果 [英] Spotify ListView header image effect
问题描述
看一个艺术家时,Android版的Spotify具有独特的ListView的标头的效果。基本上头形象出现,以保持它自己的滚动速度除了实际列表。有谁知道我在说什么?如果是这样,有人可以解释如何实现这样的效果?
The Android version of Spotify has a unique ListView header effect when viewing an artist. Basically the header image appears to maintain it's own scrolling speed apart from the actual list. Does anyone know what I'm talking about? If so, can someone explain how to achieve this effect?
下面是一个链接到一个视频概述标题图片效果我指的是:
Here is a link to a video outlining the header image effect I'm referring to:
<一个href="http://servestream.sourceforge.net/20130911_200347.mp4">http://servestream.sourceforge.net/20130911_200347.mp4
推荐答案
我做了剂量正是你需要的开源库 - 的https: //github.com/nirhart/ParallaxScroll 你可以在这里看到的例子 - <一个href="https://play.google.com/store/apps/details?id=com.nirhart.parallaxscrollexample">https://play.google.com/store/apps/details?id=com.nirhart.parallaxscrollexample
I made an open source library that dose just what you need - https://github.com/nirhart/ParallaxScroll you can see the example here - https://play.google.com/store/apps/details?id=com.nirhart.parallaxscrollexample
这篇关于Spotify的ListView的头成像效果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!