在Android中卷曲动画

在Android中卷曲动画

本文介绍了在Android中卷曲动画(如书籍的打开页面)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个包含许多图像(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

  1. https://github.com/MysticTreeGames/android-page-curl
  2. https://www.youtube.com/watch?v=iwu7P5PCpsw
  3. Android活动中的页面卷曲效果
  4. android截取屏幕外页面的屏幕截图
  5. http://www.youtube.com/watch?v=mP_AlvJqSLQ
  6. Android活动页面卷曲动画
  7. 使动画在滑动时像换页一样
  8. https://github.com/harism/android_page_curl
  9. 在Android上实现页面卷曲?....还有更多.
  1. https://github.com/MysticTreeGames/android-page-curl
  2. https://www.youtube.com/watch?v=iwu7P5PCpsw
  3. Page curl effect in an Activity in android
  4. android taking screenshot of offscreen page
  5. http://www.youtube.com/watch?v=mP_AlvJqSLQ
  6. Android activity page curl animation
  7. make animation like page changing when swiped
  8. https://github.com/harism/android_page_curl
  9. 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中卷曲动画(如书籍的打开页面)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-21 10:04