问题
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
- 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.
回答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