Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试重现 Google I/O 2014 应用程序的两个版本的效果,第一个版本在滚动时会褪色,而更新后的版本在靠近工具栏时会拉伸
我下载了应用程序的源代码,但这个效果不在公共源代码上,所以我试图找出如何自己做
我已经做的是创建一个自定义视图,它将translationY从actionbarHeight设置为0,反之亦然,但它看起来不是最好的方法,有人知道更好的方法吗?
您可以使用新的设计库。
下面是一些例子:
https://github.com/liuguangqiang/AndroidDesignSupportSample