eschao / android-PageFlip

3D Style Page Flip on Android
Apache License 2.0
1.74k stars 262 forks source link

How to custom page layout by xml #26

Closed LouisLeung closed 6 years ago

LouisLeung commented 6 years ago

I'm using the library to create "video book". I want to show the custom view (page) by custom xml. The layout contain videoView object. I try override drawPage() and add video object , but throw the exception [java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare() ] . how can change to page[Canvas+bitmap] to video object?

eschao commented 6 years ago

Sorry, I really don't know that.

acuna-public commented 6 years ago

Seems that you're loading videos from direct source. Just use an AsuncTask for load videos in your Activity to PageFlip.