问题描述
在最近的Android大号的应用程序(可以说谷歌I / O 2014年APP)与材料的主题,我们已经看到,如果在最上面的图片视图(后跟任何类型的列表),然后开始与动作条是透明的,那么当用户向下滚动的动作条逐渐变得不透明的颜色。
In recent android L apps ( lets say google i/o 2014 app) with material theme we have seen that if there is image view at top (followed by any kind of list), then to begin with the actionbar is transparent, then as the user scrolls down the actionbar gradually becomes solid color.
2的问题:1.没有这种现象有一定的名字,如果是的话是什么呢?2.如何code在为Android升的应用程序来实现这一目标还是默认
2 questions:1. does this phenomenon have some name, if yes what is it?2. how do i code to achieve this in an app for android L or is it default
推荐答案
看看这里:的https:// github上.COM / ManuelPeinado / FadingActionBar
第二个问题:根据我的研发到现在为止,我们已经由code来实现它。这就是所谓的衰落行动起来吧。您应该安装库的开发人员(Android应用程序)有很多图书馆演示。
second question : based on my researching until now, we have to implement it by code. it's called Fading action bar. You should install Libraries for developers (Android application) that have a lot of libraries demo.
这篇关于如何逐渐转透明操作栏为纯色为用户向下滚动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!