Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to maintain the sequence of the page flip. #51

Open
SachinSoma opened this issue Feb 20, 2020 · 1 comment
Open

How to maintain the sequence of the page flip. #51

SachinSoma opened this issue Feb 20, 2020 · 1 comment

Comments

@SachinSoma
Copy link

Hey its a wonderful library . I am trying to implement it, but the library does not the show pages in sequence I declared in array. And when i go to previous page their is some other random page. I want to maintain the sequence just like a book. Can you help on this.

@eschao
Copy link
Owner

eschao commented Feb 29, 2020

Please see this line:

Bitmap background = LoadBitmapTask.get(mContext).getBitmap();

This line is used to draw new page into a bitmap and then the bitmap will be passed to PageFlip to show, and here, you will see its function has a number parameter:

You can load the bitmap according to the number, number means which page will be showed, it could be an index of you bitmap array. With that, I think you will get the sequence pages to show.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants