如何做好新PlayStore视差效果 [英] How to do the new PlayStore parallax effect
问题描述
有谁知道我怎样才能实现新的视差滚动效果 - 你可以看到效果,当你打开的PlayStore一个应用程序,并尝试向下滚动,内容越过顶部图像。我怎样才能做到这一点?
Does anyone know how can I achieve the new parallax scrolling effect - you can see the effect when you open an app on the PlayStore and try to scroll down, the content goes over the top image. How can I achieve that?
推荐答案
<打击>你可以试试这个(FadingActionBar库): <一href="https://github.com/ManuelPeinado/FadingActionBar">https://github.com/ManuelPeinado/FadingActionBar
You could try this (FadingActionBar library):
https://github.com/ManuelPeinado/FadingActionBar
尝试在Android这个库的例子:<一href="https://play.google.com/store/apps/details?id=com.manuelpeinado.fadingactionbar.demo">https://play.google.com/store/apps/details?id=com.manuelpeinado.fadingactionbar.demo
Try an example of this library on android: https://play.google.com/store/apps/details?id=com.manuelpeinado.fadingactionbar.demo
编辑:而不是第三方库使用本AppBarLayout和CollapsingToolbarLayout <一href="http://android-developers.blogspot.in/2015/05/android-design-support-library.html">http://android-developers.blogspot.in/2015/05/android-design-support-library.html
Rather than third party library use this AppBarLayout and CollapsingToolbarLayout http://android-developers.blogspot.in/2015/05/android-design-support-library.html
这篇关于如何做好新PlayStore视差效果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!