how to gradually turn transparent action bar into solid color as user scrolls down

两盒软妹~` 提交于 2019-12-07 22:56:31

问题


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 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


回答1:


take a look here : https://github.com/ManuelPeinado/FadingActionBar

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.



来源:https://stackoverflow.com/questions/25469439/how-to-gradually-turn-transparent-action-bar-into-solid-color-as-user-scrolls-do

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!