Rob*_*bin 5 java animation android class
所以我有我的应用程序显示cardviews中的内容,这些视图链接到动画,它工作正常.但我的问题是如何让它像"Google Now"应用中的动画一样工作?就像它从底部滑入.
因此,当您从主页按钮向上滑动时,它会打开Google即时.但随后所有卡片都向上滑动,任何人都知道如何实现这一目标.我到处都看,但我不知道动画布局.
我一直在使用这个动画 -
<set xmlns:android="http://schemas.android.com/apk/res/android">
<translate android:fromXDelta="0" android:fromYDelta="1000" android:duration="80"/>
</set>
Run Code Online (Sandbox Code Playgroud)
它滑了起来,但它不像谷歌现在一样.
如果您使用的是 ListView,则可以在此处查看 ListViewAnimations 示例: https: //github.com/nhaarman/ListViewAnimations
Google Cards 示例尝试模仿原始的 Google Now 动画。