Spotify的ListView的头成像效果 [英] Spotify ListView header image effect

查看:101
本文介绍了Spotify的ListView的头成像效果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

看一个艺术家时,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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆