问题描述
我正在开发一个包含许多图像(hd)的应用程序,通过分别向左/向右交换屏幕,这些图像将显示在下一个/上一个中.更改图片应类似于打开书页(卷曲动画 http://www.youtube.com/watch?v = _vOYvaNhSHw ),并且在每个页面上,我都必须在触摸屏幕的不同部分时播放不同的音频文件.我已经用谷歌搜索并找到了许多解决方案,但是这些解决方案无法正常工作,并且显示内存超出限制.这些网址是
I am developing an app which include many images(hd) and these images will shown in next/previous by swapping screen left/right respectively. Changing of images should be like opening book pages(curl animation http://www.youtube.com/watch?v=_vOYvaNhSHw) and also on every page, i have to play different audio files on touching different parts of screens. I have googled and found many solutions for it but these are not working and showing memory out of bound exception. These urls are
- https://github.com/MysticTreeGames/android-page-curl
- https://www.youtube.com/watch?v=iwu7P5PCpsw
- Android活动中的页面卷曲效果
- android截取屏幕外页面的屏幕截图
- http://www.youtube.com/watch?v=mP_AlvJqSLQ
- Android活动页面卷曲动画
- 使动画在滑动时像换页一样
- https://github.com/harism/android_page_curl
- 在Android上实现页面卷曲?....还有更多.
- 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?.... and many more.
在上述所有链接中,内存问题或卷曲动画是最糟糕的,所以我无法从他们那里获得帮助.
In all above links either memory issue or curl animation is worst, So i can't get help from them.
请帮助我摆脱这些问题.将不胜感激.
Please help me to stuck out from these issue. It would be appreciated.
推荐答案
可以在清单中添加以下选项吗?就我而言,当我有较大的 bitmap
和 OutOfMemoryError
can you add below option in manifest. In my case this help me when I have large bitmap
and OutOfMemoryError
android:hardwareAccelerated="true"
android:largeHeap="true"
android:icon="@drawable/ic_launcher_android"
android:label="@string/app_name"
android:theme="@style/AppTheme"
这篇关于在Android中卷曲动画(如书籍的打开页面)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!