ViewPager过渡上的PageCurl动画? [英] PageCurl animations on ViewPager transitions?
本文介绍了ViewPager过渡上的PageCurl动画?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
以下是页面卷曲动画的演示: http://www.youtube.com/watch?v=aVZHN_o45sg
Here's a demo of what a page curl animation looks like: http://www.youtube.com/watch?v=aVZHN_o45sg
有两个页面卷曲动画库:
There are a couple of page curl animation libraries:
- https://github.com/harism/android_page_curl
- https://github.com/MysticTreeGames/android-page-curl
它们旨在与位图可绘制对象一起使用,而不必与ViewGroups一起使用.如果想知道是否有人为ViewPagers提出了类似的页面卷曲过渡.
They are meant to work with Bitmap Drawables and not necessarily ViewGroups. If was wondering if anyone has come up with a similar page curl transition for ViewPagers.
推荐答案
不是直接方法.但是,如何通过getDrawingCache()方法创建视图组的位图并将该位图传递给库.
Not a straight way..but, How about creating the bitmap of view group by getDrawingCache() method and pass the bitmap to library.
这篇关于ViewPager过渡上的PageCurl动画?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文