Curl animation(like open page of book) in android

喜欢而已 提交于 2021-02-06 05:50:54

问题


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. 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.


回答1:


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"


来源:https://stackoverflow.com/questions/26973285/curl-animationlike-open-page-of-book-in-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!