播放报亭有点动画显示效果工具栏颜色变化,怎么样?(Play Newsstand kind of animating reveal effect toolbar color change ,how?)

你们中的许多人可能已经尝试了全新的材料设计的新谷歌报摊。它看起来非常棒。

我很想知道如何实现它的外观。 所以让我为你缩小范围。

如何进行视差效果,向下滚动工具栏消失,再次以较小的方式重新显示在顶部,然后淡入较大的工具栏。

2.当我们滑动标签时,工具栏会显示动画。

它有两个组成部分,一个 - 工具栏中间的圆圈淡入,两个 - 它继续,因为另一个圆圈显示自己以及动画颜色变化。

我的研究没有取得任何进展,所以我来到这里......尽管如此,我仍会继续寻找那些符合我情况的人。

谢谢

Many of you might've tried the new google play newsstand with the all new material design.It looks pretty amazing.

I would love to know how to achieve the looks it has. So let me narrow it down for you.

How do I do the parallax effect , scroll down toolbar disappears and the reappears as a smaller one on a slight scroll to the top and then fades into the bigger toolbar.

2.the toolbar reveal animation when we swipe tabs.

It has two components , one - the circle in the middle of the toolbar fades in , two - it continues as another circle reveals itself along with an animated color change .

I have made no progress in my research so I come here..nonetheless I'll keep searching for those in my situation.

Thank you

最满意答案

Android现在在支持设计库中提供此功能。 你可以通过使用来实现它

<android.support.design.widget.CollapsingToolbarLayout android:id="@+id/toolbar_layout" android:layout_width="match_parent" android:layout_height="match_parent" android:fitsSystemWindows="true" app:contentScrim="?attr/colorPrimary" app:layout_scrollFlags="scroll|exitUntilCollapsed">

Android provides this feature in support design library now. You can achieve it by using

<android.support.design.widget.CollapsingToolbarLayout android:id="@+id/toolbar_layout" android:layout_width="match_parent" android:layout_height="match_parent" android:fitsSystemWindows="true" app:contentScrim="?attr/colorPrimary" app:layout_scrollFlags="scroll|exitUntilCollapsed">

更多推荐