我正在开发一个包含许多图像(高清)的应用程序,这些图像将分别通过左/右交换屏幕显示在下一个/上一个中。更改图像应该像打开书页( curl 动画http://www.youtube.com/watch?v=_vOYvaNhSHw),而且在每一页上,我都必须在触摸屏幕的不同部分时播放不同的音频文件。我用谷歌搜索并找到了许多解决方案,但这些都不起作用并显示内存超出限制异常。这些网址是
- https://github.com/MysticTreeGames/android-page-curl
- https://www.youtube.com/watch?v=iwu7P5PCpsw
- Page curl effect in an Activity in android
- android taking screenshot of offscreen page
- http://www.youtube.com/watch?v=mP_AlvJqSLQ
- Android activity page curl animation
- make animation like page changing when swiped
- https://github.com/harism/android_page_curl
- Implement page curl on android? ....还有更多。
在以上所有链接中,内存问题或 curl 动画最糟糕,因此我无法从他们那里获得帮助。
请帮我解决这些问题。我们将不胜感激。
最佳答案
您可以在 list 中添加以下选项吗?在我的例子中,当我有大的 bitmap
和 OutOfMemoryError
android:hardwareAccelerated="true"
android:largeHeap="true"
android:icon="@drawable/ic_launcher_android"
android:label="@string/app_name"
android:theme="@style/AppTheme"
关于android - android中的 curl 动画(如打开的书页),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26973285/